code: def _extract_class_dict(cls):
      """Retrieve a copy of the dict of a class without the inherited methods"""
      clsdict = dict(cls.__dict__)  # copy dict proxy to a dict
      if len(cls.__bases__) == 1:
          inherited_dict = cls.__bases__[0].__dict__
      else:
          inherited_dict = {}
          for base in reversed(cls.__bases__):
              inherited_dict.update(base.__dict__)
      to_remove = []
      for name, value in clsdict.items():
          try:
              base_value = inherited_dict[name]
              if value is base_value:
                  to_remove.append(name)
          except KeyError:
              pass
      for name in to_remove:
          clsdict.pop(name)
      return clsdict
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import builtins
  import dis
  import opcode
  import platform
  import sys
  import types
  import weakref
  import uuid
  import threading
  import typing
  import warnings
  from ._compat import pickle
  from typing import Generic, Union, Tuple, Callable
  from pickle import _getattribute
  from importlib._bootstrap import _find_spec
label_desc: Use image node_id 12 for calling a global function with example usage: _extract_class_dict(cls) and returns: clsdict