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