code: def can_class(obj):
      if isinstance(obj, class_type) and obj.__module__ == "__main__":
          return CannedClass(obj)
      else:
          return obj
  
imports: import warnings
  import copy
  import sys
  from types import FunctionType
  from ipython_genutils import py3compat
  from ipython_genutils.importstring import import_item
  from ipython_genutils.py3compat import string_types, iteritems, buffer_to_bytes, buffer_to_bytes_py2
  from traitlets.log import get_logger
label_desc: Use image node_id 8 for calling a global function with example usage: can_class(obj) and returns: CannedClass, obj