import inspect


def get_args(method):
  """
  Helper to get the arguments (positional and keywords) 
  from the parameters of any function or class
  Args:
    method [function]: 
  returns:
    args, kwargs
  """
  sig = inspect.signature(method)
  parameters = sig.parameters
  args = []
  kwargs = []
  for key in parameters:
    param = parameters[key]
    if param.default is not param.empty:
      kwargs.append(param)
    else:
      args.append(param)
  return args, kwargs