code: def type(condition):
      """get object that generated the given termination instance"""
      if isinstance(
          condition, _type(lambda: None)
      ):  # XXX: type of term conditions
          try:
              import importlib
  
              module = importlib.import_module(condition.__module__)
          except ImportError:
              module = __import__(
                  condition.__module__,
                  globals(),
                  locals(),
                  ["object"],
                  -1,
              )
          return getattr(
              module, condition.__name__[1:]
          )  # XXX: start w/ _
      # otherwise, just figure it's a class or standard object
      return _type(condition)
  
imports: import numpy
  import mystic.collapse
  from mystic.math.distance import Lnorm
  from mystic._scipy060optimize import approx_fprime, _epsilon
label_desc: Use image node_id 2 for calling a global function with example usage: type(condition) and returns: _type, getattr