class_docstr: Register from names to classes. In particular, we say that direct subclasses of
  ReplaceableBase are "base classes" and we register subclasses of each base class
  in a separate namespace.
docstr: Return whether the given type is a direct subclass of ReplaceableBase
  and so gets used as a namespace.
docstr_tok: ["Return","whether","the","given","type","is","a","direct","subclass","of","ReplaceableBase","and","so","gets","used","as","a","namespace","."]
code: def _is_base_class(some_class: Type[ReplaceableBase]) -> bool:
      """
      Return whether the given type is a direct subclass of ReplaceableBase
      and so gets used as a namespace.
      """
      return ReplaceableBase in some_class.__bases__
  
imports: import dataclasses
  import inspect
  import itertools
  import sys
  import warnings
  from collections import Counter, defaultdict
  from enum import Enum
  from functools import partial
  from typing import Any, Callable, Dict, get_args, get_origin, List, Optional, Tuple, Type, TypeVar, Union
  from omegaconf import DictConfig, OmegaConf, open_dict
label_desc: Use image node_id 6 for calling the _Registry obj's underlying member method code with example usage: obj._is_base_class(some_class) and returns: unknown