code: def add_subparser(
      subparsers: SubParsersAction,
      parents: List[argparse.ArgumentParser],
  ) -> None:
      """Add all run parsers.
  
      Args:
          subparsers: subparser we are going to attach to
          parents: Parent parsers, needed to ensure tree structure in argparse
      """
      run_parser = subparsers.add_parser(
          "run",
          parents=parents,
          conflict_handler="resolve",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          help="Starts a Rasa server with your trained model.",
      )
      run_parser.set_defaults(func=run)
  
      run_subparsers = run_parser.add_subparsers()
      sdk_subparser = run_subparsers.add_parser(
          "actions",
          parents=parents,
          conflict_handler="resolve",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          help="Runs the action server.",
      )
      sdk_subparser.set_defaults(func=run_actions)
  
      arguments.set_run_arguments(run_parser)
      arguments.set_run_action_arguments(sdk_subparser)
  
file_path: rasa/rasa/cli/run.py
imports: import argparse
  import logging
  import os
  from typing import List, Text
  from rasa.cli import SubParsersAction
  from rasa.cli.arguments import run
  from rasa.shared.constants import DOCS_BASE_URL, DEFAULT_ENDPOINTS_PATH, DEFAULT_CREDENTIALS_PATH, DEFAULT_ACTIONS_PATH, DEFAULT_MODELS_PATH
  from rasa.exceptions import ModelNotFound
label_desc: Use image node_id 1 for calling a global function with example usage: add_subparser(subparsers, parents) without return types