code: def function_defaults(func):
      
      if getattr(inspect, 'signature',None) is None:
          return inspect.getargspec(func)[-1] or []
      else:
          return [v.default for k,v in list(
              inspect.signature(func).parameters.items())
                  if v.default is not inspect._empty]
docs: This returns a list of the default arguments
      :param func: callable object
      :return:     list of obj of default parameters