code: def test_code_getargs() -> None:
      def f1(x):
          raise NotImplementedError()
  
      c1 = Code.from_function(f1)
      assert c1.getargs(var=True) == ("x",)
  
      def f2(x, *y):
          raise NotImplementedError()
  
      c2 = Code.from_function(f2)
      assert c2.getargs(var=True) == ("x", "y")
  
      def f3(x, **z):
          raise NotImplementedError()
  
      c3 = Code.from_function(f3)
      assert c3.getargs(var=True) == ("x", "z")
  
      def f4(x, *y, **z):
          raise NotImplementedError()
  
      c4 = Code.from_function(f4)
      assert c4.getargs(var=True) == ("x", "y", "z")
  
imports: import re
  import sys
  from types import FrameType
  from unittest import mock
  import pytest
  from _pytest._code import Code
  from _pytest._code import ExceptionInfo
  from _pytest._code import Frame
  from _pytest._code import Source
  from _pytest._code.code import ExceptionChainRepr
  from _pytest._code.code import ReprFuncArgs
label_desc: Use image node_id 11 for calling a global function with example usage: test_code_getargs() without return types