code: def register_agent(name: str) -> Callable[[Type], Type]:
      """
      Register an agent to be available in command line calls.
  
      >>> @register_agent("my_agent")
      ... class MyAgent:
      ...     pass
      """
  
      def _inner(cls_):
          global AGENT_REGISTRY
          AGENT_REGISTRY[name] = cls_
          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 1 for calling a global function with example usage: register_agent(name) and returns: _inner, cls_