code: def test_formatdef() -> None:
      def function1():
          pass
  
      assert _formatdef(function1) == "function1()"
  
      def function2(arg1):
          pass
  
      assert _formatdef(function2) == "function2(arg1)"
  
      def function3(arg1, arg2="qwe"):
          pass
  
      assert _formatdef(function3) == "function3(arg1, arg2='qwe')"
  
      def function4(arg1, *args, **kwargs):
          pass
  
      assert _formatdef(function4) == "function4(arg1, *args, **kwargs)"
  
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 5 for calling a global function with example usage: test_formatdef() without return types