in elastic_enterprise_search/_utils.py [0:0]
def _quote_query_form(key: str, value: t.Union[t.List[str], t.Tuple[str, ...]]) -> str:
if not isinstance(value, (tuple, list)):
raise ValueError(f"{key!r} must be of type list or tuple")
return ",".join(map(str, value))