code: def _class_reduce(obj):
      """Select the reducer depending on the dynamic nature of the class obj"""
      if obj is type(None):  # noqa
          return type, (None,)
      elif obj is type(Ellipsis):
          return type, (Ellipsis,)
      elif obj is type(NotImplemented):
          return type, (NotImplemented,)
      elif obj in _BUILTIN_TYPE_NAMES:
          return _builtin_type, (_BUILTIN_TYPE_NAMES[obj],)
      elif not _is_importable(obj):
          return _dynamic_class_reduce(obj)
      return NotImplemented
  
imports: import abc
  import copyreg
  import io
  import itertools
  import logging
  import sys
  import struct
  import types
  import weakref
  import typing
  from enum import Enum
  from collections import ChainMap
  from ._compat import pickle, Pickler
  from ._cloudpickle import _extract_code_globals, _BUILTIN_TYPE_NAMES, DEFAULT_PROTOCOL, _find_imported_submodules, _get_cell_contents, _is_importable, _builtin_type, _get_or_create_tracker_id, _make_skeleton_class, _make_skeleton_enum, _extract_class_dict, dynamic_subimport, subimport, _typevar_reduce, _get_bases, _make_cell, _make_empty_cell, CellType, _is_parametrized_type_hint, PYPY, cell_set, parametrized_type_hint_getinitargs, _create_parametrized_type_hint, builtin_code_type
label_desc: Use image node_id 21 for calling a global function with example usage: _class_reduce(obj) and returns: NotImplemented, type,  None, type,  Ellipsis, type,  NotImplemented, _builtin_type,  _BUILTIN_TYPE_NAMES, _dynamic_class_reduce