code: def build_nas_space_from_name(name: str) -> BaseSpace:
      """
      Parameters
      ----------
      name: ``str``
          the name of nas space.
  
      Returns
      -------
      BaseSpace:
          the NAS space built using default parameters
  
      Raises
      ------
      AssertionError
          If an invalid name is passed in
      """
      assert name in NAS_SPACE_DICT, (
          "HPO module do not have name " + name
      )
      return NAS_SPACE_DICT[name]()
  
file_path: AutoGL/autogl/module/nas/space/__init__.py
imports: import importlib
  import os
  from .base import BaseSpace
  from .graph_nas_macro import GraphNasMacroNodeClassificationSpace
  from .graph_nas import GraphNasNodeClassificationSpace
  from .single_path import SinglePathNodeClassificationSpace
  from ..backend import *
label_desc: Use image node_id 2 for calling a global function with example usage: build_nas_space_from_name(name) and returns: NAS_SPACE_DICT