code: def _get_base_classes(
      class_: Type["Configs"],
  ) -> List[Type["Configs"]]:
      classes = [class_]
      level = [class_]
      next_level = []
  
      while len(level) > 0:
          for c in level:
              for b in c.__bases__:
                  if b == object:
                      continue
                  next_level.append(b)
          classes += next_level
          level = next_level
          next_level = []
  
      classes.reverse()
  
      unique_classes = []
      hashes: Set[int] = set()
      for c in classes:
          if hash(c) not in hashes:
              unique_classes.append(c)
          hashes.add(hash(c))
  
      return unique_classes
  
imports: import types
  import warnings
  from collections import OrderedDict
  from typing import Dict, List, Callable, Union, Tuple, Optional, Type, Set, Iterable, Any
  from .config_function import ConfigFunction
  from .config_item import ConfigItem
  from .eval_function import EvalFunction
  from .utils import Value
  from ...None import monit
label_desc: Use image node_id 3 for calling a global function with example usage: _get_base_classes(class_) and returns: unique_classes