code: def _import(mod, klass):
      obj = importlib.import_module(mod)
      if klass:
          obj = getattr(obj, klass)
          return obj, ":obj:`{}.{}.{{}}`".format(mod, klass)
      else:
          # ufunc is not a function
          return obj, ":obj:`{}.{{}}`".format(mod)
  
imports: import importlib
  import inspect
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _import(mod, klass) and returns: obj,  str, obj,  str