code: def test_invalid_total_length_max_length_one(_fname):
      compat_args = ("foo",)
      kwargs = {"foo": "FOO"}
      args = ("FoO", "BaZ")
  
      min_fname_arg_count = 0
      max_length = len(compat_args) + min_fname_arg_count
      actual_length = len(kwargs) + len(args) + min_fname_arg_count
  
      msg = (
          rf"{_fname}\(\) takes at most {max_length} "
          rf"argument \({actual_length} given\)"
      )
  
      with pytest.raises(TypeError, match=msg):
          validate_args_and_kwargs(
              _fname, args, kwargs, min_fname_arg_count, compat_args
          )
  
imports: import pytest
  from pandas.util._validators import validate_args_and_kwargs
label_desc: Use image node_id 2 for calling a global function with example usage: test_invalid_total_length_max_length_one(_fname) without return types