code: def test_too_many_positional_params() -> None:
      @required_args(["a"])
      def foo(a: str | None = None) -> str | None:
          return a
  
      with pytest.raises(
          TypeError,
          match=r"foo\(\) takes 1 argument\(s\) but 2 were given",
      ):
          foo("a", "b")
  
file_path: openai-python/tests/test_required_args.py
imports: from __future__ import annotations
  import pytest
  from openai._utils import required_args
label_desc: Use image node_id 1 for calling a global function with example usage: test_too_many_positional_params() and returns: a