code: def test_varnames() -> None:
      def f(x) -> None:
          i = 3  # noqa
  
      class A:
          def f(self, y) -> None:
              pass
  
      class B:
          def __call__(self, z) -> None:
              pass
  
      assert varnames(f) == (("x",), ())
      assert varnames(A().f) == (("y",), ())
      assert varnames(B()) == (("z",), ())
  
file_path: catboost/contrib/python/pluggy/py3/tests/test_helpers.py
imports: from functools import wraps
  from typing import Any
  from typing import Callable
  from typing import cast
  from typing import TypeVar
  from pluggy._hooks import varnames
  from pluggy._manager import _formatdef
label_desc: Use image node_id 1 for calling a global function with example usage: test_varnames() without return types