code: def setup_script_registry():
      """
      Loads the scripts so that @register_script is hit for all.
      """
      for module in pkgutil.iter_modules(
          parlai.scripts.__path__, "parlai.scripts."
      ):
          importlib.import_module(module.name)
      try:
          import parlai_fb.scripts
  
          for module in pkgutil.iter_modules(
              parlai_fb.scripts.__path__, "parlai_fb.scripts."
          ):
              importlib.import_module(module.name)
      except ImportError:
          pass
      try:
          import parlai_internal.scripts
  
          for module in pkgutil.iter_modules(
              parlai_internal.scripts.__path__,
              "parlai_internal.scripts.",
          ):
              importlib.import_module(module.name)
      except ImportError:
          pass
  
imports: import sys
  import io
  import argparse
  from typing import List, Optional, Dict, Any
  import parlai
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser, CustomHelpFormatter
  from abc import abstractmethod
  import importlib
  import pkgutil
  import parlai.scripts
  import parlai.utils.logging
  from parlai.core.loader import register_script, SCRIPT_REGISTRY
label_desc: Use image node_id 1 for calling a global function with example usage: setup_script_registry() without return types