code: def parse_args():
      """Parse command line options (mode and config)."""
      parser = argparse.ArgumentParser(description="Run a model.")
      help_s, choices = "Run mode", [
          "info",
          "train",
          "test",
          "time",
          "scale",
      ]
      parser.add_argument(
          "--mode",
          help=help_s,
          choices=choices,
          required=True,
          type=str,
      )
      help_s = "Config file location"
      parser.add_argument("--cfg", help=help_s, required=True, type=str)
      help_s = "See pycls/core/config.py for all options"
      parser.add_argument(
          "opts", help=help_s, default=None, nargs=argparse.REMAINDER
      )
      if len(sys.argv) == 1:
          parser.print_help()
          sys.exit(1)
      return parser.parse_args()
  
file_path: pycls/tools/run_net.py
imports: import argparse
  import sys
  import pycls.core.builders
  import pycls.core.config
  import pycls.core.distributed
  import pycls.core.net
  import pycls.core.trainer
  import pycls.models.scaler
  from pycls.core.config import cfg
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser