code: def get_args(func):
      """
      returns a dictionary of arg_name:default_values for the input function
      """
      args, varargs, keywords, defaults = inspect.getargspec(func)
  
      defaults = (
          list(reversed(defaults)) if defaults is not None else []
      )
      args = list(reversed(args))
  
      while len(defaults) != len(args):
          defaults += (None,)
  
      return dict(list(zip(args, defaults)))
  
file_path: neon/neon/__init__.py
imports: from __future__ import print_function
  from builtins import zip
  from copy import deepcopy
  import inspect
  import logging
  from neon.util.persist import load_class
label_desc: Use image node_id 2 for calling a global function with example usage: get_args(func) and returns: dict