code: def __init__(self, cls):
      self._check_type(cls)
      self.name = cls.__name__
      self.old_style = not isinstance(cls, type)
      self._canned_dict = {}
      for k, v in cls.__dict__.items():
          if k not in ("__weakref__", "__dict__"):
              self._canned_dict[k] = can(v)
      if self.old_style:
          mro = []
      else:
          mro = cls.mro()
  
      self.parents = [can(c) for c in mro[1:]]
      self.buffers = []
  
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 1 to create a new CannedClass object from inherited base classes: CannedObject with example: obj = CannedClass(cls)