code: def register_nas_algo(name):
      def register_nas_algo_cls(cls):
          if name in NAS_ALGO_DICT:
              raise ValueError(
                  "Cannot register duplicate NAS algorithm ({})".format(
                      name
                  )
              )
          if not issubclass(cls, BaseNAS):
              raise ValueError(
                  "Model ({}: {}) must extend NAS algorithm".format(
                      name, cls.__name__
                  )
              )
          NAS_ALGO_DICT[name] = cls
          return cls
  
      return register_nas_algo_cls
  
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 1 for calling a global function with example usage: register_nas_algo(name) and returns: register_nas_algo_cls, cls