code: def test_array_comma(method: str) -> None:
      if method == "class":
          serialise = Querystring(array_format="comma").stringify
      else:
          serialise = partial(stringify, array_format="comma")
  
      assert unquote(serialise({"in": ["foo", "bar"]})) == "in=foo,bar"
      assert (
          unquote(serialise({"a": {"b": [True, False]}}))
          == "a[b]=true,false"
      )
      assert (
          unquote(serialise({"a": {"b": [True, False, None, True]}}))
          == "a[b]=true,false,true"
      )
  
file_path: openai-python/tests/test_qs.py
imports: from typing import Any, cast
  from functools import partial
  from urllib.parse import unquote
  import pytest
  from openai._qs import Querystring, stringify
label_desc: Use image node_id 5 for calling a global function with example usage: test_array_comma(method) without return types