code: def get_args(fn):
      with warnings.catch_warnings():
          warnings.simplefilter("ignore")
          spec = inspect.getfullargspec(fn)
  
      args = spec.args
      if spec.varargs:
          args += ["*" + spec.varargs]
  
      return args
  
file_path: datashader/datashader/tests/test_macros.py
imports: from __future__ import annotations
  import warnings
  import pytest
  from datashader.macros import expand_varargs
  import inspect
  from numba import jit
label_desc: Use image node_id 6 for calling a global function with example usage: get_args(fn) and returns: args