code: def getfullargspec(func):
      """Compatibility function to provide inspect.getfullargspec in Python 2
  
      This should be rewritten using a backport of Python 3 signature
      once we drop support for Python 2.6. We went for a simpler
      approach at the time of writing because signature uses OrderedDict
      which is not available in Python 2.6.
      """
      try:
          return inspect.getfullargspec(func)
      except AttributeError:
          arg_spec = inspect.getargspec(func)
          import collections
  
          tuple_fields = (
              "args varargs varkw defaults kwonlyargs "
              "kwonlydefaults annotations"
          )
          tuple_type = collections.namedtuple(
              "FullArgSpec", tuple_fields
          )
  
          return tuple_type(
              args=arg_spec.args,
              varargs=arg_spec.varargs,
              varkw=arg_spec.keywords,
              defaults=arg_spec.defaults,
              kwonlyargs=[],
              kwonlydefaults=None,
              annotations={},
          )
  
file_path: mlens/mlens/externals/joblib/func_inspect.py
imports: from itertools import islice
  import inspect
  import warnings
  import re
  import os
  from ._compat import _basestring
  from .logger import pformat
  from ._memory_helpers import open_py_source
  from ._compat import PY3_OR_LATER
label_desc: Use image node_id 4 for calling a global function with example usage: getfullargspec(func) and returns: inspect, tuple_type