code: def test_varnames():
      def f(x):
          i = 3  # noqa
  
      class A(object):
          def f(self, y):
              pass
  
      class B(object):
          def __call__(self, z):
              pass
  
      assert varnames(f) == (("x",), ())
      assert varnames(A().f) == (("y",), ())
      assert varnames(B()) == (("z",), ())
  
file_path: catboost/contrib/python/pluggy/py2/tests/test_helpers.py
imports: from pluggy.hooks import varnames
  from pluggy.manager import _formatdef
  import sys
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: test_varnames() without return types