code: def register_script(name: str, aliases=None, hidden=False):
      """
      Register an agent to be available in command line calls.
  
      >>> @register_script("my_script")
      ... class MyScript:
      ...     pass
      """
      if aliases is None:
          aliases = []
  
      def _inner(cls_):
          global SCRIPT_REGISTRY
          SCRIPT_REGISTRY[name] = script_registration(
              cls_, hidden, aliases
          )
          return cls_
  
      return _inner
  
file_path: ParlAI/parlai/core/loader.py
imports: from typing import Callable, Dict, Type, Tuple
  import importlib
  from collections import namedtuple
label_desc: Use image node_id 2 for calling a global function with example usage: register_script(name, aliases, hidden) and returns: _inner, cls_