code: def test_nested_dotted(method: str) -> None:
      if method == "class":
          serialise = Querystring(nested_format="dots").stringify
      else:
          serialise = partial(stringify, nested_format="dots")
  
      assert unquote(serialise({"a": {"b": "c"}})) == "a.b=c"
      assert (
          unquote(serialise({"a": {"b": "c", "d": "e", "f": "g"}}))
          == "a.b=c&a.d=e&a.f=g"
      )
      assert (
          unquote(serialise({"a": {"b": {"c": {"d": "e"}}}}))
          == "a.b.c.d=e"
      )
      assert unquote(serialise({"a": {"b": True}})) == "a.b=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 3 for calling a global function with example usage: test_nested_dotted(method) without return types