code: def func_args(func):
      '''Basic function which returns a tuple of arguments of a function or
      method.
      '''
      try:
          return tuple(inspect.signature(func).parameters)
      except:
          return tuple(inspect.getargspec(func).argsf func_args(func):
      '''Basic function which returns a tuple of arguments of a function or
      method.
      '''
      try:
          return tuple(inspect.signature(func).parameters)
      except:
          return tuple(inspect.getargspec(func).args)
docs: Basic function which returns a tuple of arguments of a function or
      method.