code: def test_varnames_class() -> None:
      class C:
          def __init__(self, x) -> None:
              pass
  
      class D:
          pass
  
      class E:
          def __init__(self, x) -> None:
              pass
  
      class F:
          pass
  
      assert varnames(C) == (("x",), ())
      assert varnames(D) == ((), ())
      assert varnames(E) == (("x",), ())
      assert varnames(F) == ((), ())
  
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 3 for calling a global function with example usage: test_varnames_class() without return types