code: def _is_importable(obj, name=None):
      """Dispatcher utility to test the importability of various constructs."""
      if isinstance(obj, types.FunctionType):
          return _lookup_module_and_qualname(obj, name=name) is not None
      elif issubclass(type(obj), type):
          return _lookup_module_and_qualname(obj, name=name) is not None
      elif isinstance(obj, types.ModuleType):
          # We assume that sys.modules is primarily used as a cache mechanism for
          # the Python import machinery. Checking if a module has been added in
          # is sys.modules therefore a cheap and simple heuristic to tell us whether
          # we can assume  that a given module could be imported by name in
          # another Python process.
          return obj.__name__ in sys.modules
      else:
          raise TypeError(
              "cannot check importability of {} instances".format(
                  type(obj).__name__
              )
          )
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import builtins
  import dis
  import opcode
  import platform
  import sys
  import types
  import weakref
  import uuid
  import threading
  import typing
  import warnings
  from ._compat import pickle
  from typing import Generic, Union, Tuple, Callable
  from pickle import _getattribute
  from importlib._bootstrap import _find_spec
label_desc: Use image node_id 4 for calling a global function with example usage: _is_importable(obj, name) and returns: unknown, unknown, unknown