code: def get_args_default(func):
      sig_object = inspect.signature(func)
      params = sig_object.parameters.values()
      names = [param.name for param in params if param.name != "self"]
      defaults = [
          param.default
          for param in params
          if param.default is not inspect._empty
      ]
  
      return names, defaults
  
file_path: dipy/dipy/workflows/base.py
imports: import argparse
  import inspect
  from dipy.workflows.docstring_parser import NumpyDocString
label_desc: Use image node_id 1 for calling a global function with example usage: get_args_default(func) and returns: names,  defaults