code: def can_class(obj):
      """Can a class object."""
      if isinstance(obj, class_type) and obj.__module__ == "__main__":
          return CannedClass(obj)
      return obj
  
imports: import typing
  import warnings
  import copy
  import pickle
  import sys
  from types import FunctionType
  from ipyparallel.serialize import codeutil
  from traitlets.log import get_logger
  from traitlets.utils.importstring import import_item
label_desc: Use image node_id 8 for calling a global function with example usage: can_class(obj) and returns: obj, CannedClass