code: def getargspec(obj):
      """Wrapper around :func:`inspect.getfullargspec` on Python 3, and
      :func:inspect.getargspec` on Python 2.
  
      In addition to functions and methods, this can also handle objects with a
      ``__call__`` attribute.
      """
      if safe_hasattr(obj, "__call__") and not is_simple_callable(obj):
          obj = obj.__call__
  
      return (
          inspect.getfullargspec(obj)
          if PY3
          else inspect.getargspec(obj)
      )
  
imports: from __future__ import print_function
  import inspect
  import linecache
  import warnings
  import os
  from textwrap import dedent
  import types
  import io
  from IPython.core import page
  from IPython.lib.pretty import pretty
  from IPython.testing.skipdoctest import skip_doctest_py3
  from IPython.utils import PyColorize
  from IPython.utils import openpy
  from IPython.utils import py3compat
  from IPython.utils.dir2 import safe_hasattr
  from IPython.utils.path import compress_user
  from IPython.utils.text import indent
  from IPython.utils.wildcard import list_namespace
  from IPython.utils.coloransi import TermColors, ColorScheme, ColorSchemeTable
  from IPython.utils.py3compat import cast_unicode, string_types, PY3
  from IPython.utils.signatures import signature
  from IPython.utils.colorable import Colorable
  from pygments import highlight
  from pygments.formatters import HtmlFormatter
label_desc: Use image node_id 7 for calling a global function with example usage: getargspec(obj) and returns: unknown