class_docstr: Base class for configs with ``name`` to specify the type.
code: def __init__(self, name: str | None = None, **kwargs):
      if name is not None:
          # `__init__` would be called with the name as an argument, regardless of whether it's passed to `__new__`.
          assert name == self.__class__.name
      super().__init__(**kwargs)
  
file_path: nni/nni/nas/experiment/config/utils.py
imports: from __future__ import annotations
  from typing import Type
  from nni.experiment.config.base import ConfigBase
label_desc: Use image node_id 2 to create a new NamedSubclassConfigBase object from inherited base classes: ConfigBase with example: obj = NamedSubclassConfigBase(name)