code: def build_nas_algo_from_name(name: str) -> BaseNAS:
      """
      Parameters
      ----------
      name: ``str``
          the name of nas algorithm.
  
      Returns
      -------
      BaseNAS:
          the NAS algorithm built using default parameters
  
      Raises
      ------
      AssertionError
          If an invalid name is passed in
      """
      assert name in NAS_ALGO_DICT, (
          "HPO module do not have name " + name
      )
      return NAS_ALGO_DICT[name]()
  
file_path: AutoGL/autogl/module/nas/algorithm/__init__.py
imports: import importlib
  import os
  from .base import BaseNAS
  from .darts import Darts
  from .enas import Enas
  from .random_search import RandomSearch
  from .rl import RL, GraphNasRL
  from ..backend import *
  from .spos import Spos
label_desc: Use image node_id 2 for calling a global function with example usage: build_nas_algo_from_name(name) and returns: NAS_ALGO_DICT