class_docstr: Base class for configs with ``name`` to specify the type.
code: def config_class_from_name(
      cls: Type[NamedSubclassConfigBase], name: str
  ) -> Type[NamedSubclassConfigBase]:
      valid_names = []
      for subcls in cls.__subclasses__():
          valid_names.append(subcls.name)
          if subcls.name == name:
              return subcls
      raise ValueError(
          f"Invalid {cls.__name__} subclass: {name}. Valid subclass names are: {valid_names}"
      )
  
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 4 for calling the NamedSubclassConfigBase obj's underlying member method code with example usage: obj.config_class_from_name(cls, name) and returns: subcls