code: def can_class(obj):
      if isinstance(obj, type) and obj.__module__ == "__main__":
          return CannedClass(obj)
      else:
          return obj
  
imports: import copy
  import functools
  import sys
  from types import FunctionType
  from traitlets import import_item
  from traitlets.log import get_logger
  from .None import codeutil
label_desc: Use image node_id 9 for calling a global function with example usage: can_class(obj) and returns: CannedClass, obj