code: def create_argument_parser() -> argparse.ArgumentParser:
      """Parse all the command line arguments for the training script."""
      parser = argparse.ArgumentParser(
          prog="rasa",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          description="Rasa command line interface. Rasa allows you to build "
          "your own conversational assistants 🤖. The 'rasa' command "
          "allows you to easily run most common commands like "
          "creating a new bot, training or evaluating models.",
      )
  
      parser.add_argument(
          "--version",
          action="store_true",
          default=argparse.SUPPRESS,
          help="Print installed Rasa version",
      )
  
      parent_parser = argparse.ArgumentParser(add_help=False)
      add_logging_options(parent_parser)
      parent_parsers = [parent_parser]
  
      subparsers = parser.add_subparsers(help="Rasa commands")
  
      scaffold.add_subparser(subparsers, parents=parent_parsers)
      run.add_subparser(subparsers, parents=parent_parsers)
      shell.add_subparser(subparsers, parents=parent_parsers)
      train.add_subparser(subparsers, parents=parent_parsers)
      interactive.add_subparser(subparsers, parents=parent_parsers)
      telemetry.add_subparser(subparsers, parents=parent_parsers)
      test.add_subparser(subparsers, parents=parent_parsers)
      visualize.add_subparser(subparsers, parents=parent_parsers)
      data.add_subparser(subparsers, parents=parent_parsers)
      export.add_subparser(subparsers, parents=parent_parsers)
      x.add_subparser(subparsers, parents=parent_parsers)
      evaluate.add_subparser(subparsers, parents=parent_parsers)
      plugin_manager().hook.refine_cli(
          subparsers=subparsers, parent_parsers=parent_parsers
      )
  
      return parser
  
imports: import argparse
  import logging
  import os
  import platform
  import sys
  from rasa_sdk import __version__
  from rasa.constants import MINIMUM_COMPATIBLE_VERSION
  from rasa.utils.log_utils import configure_structlog
  import rasa.telemetry
  import rasa.utils.io
  import rasa.utils.tensorflow.environment
  from rasa import version
  from rasa.cli import data, export, interactive, run, scaffold, shell, telemetry, test, train, visualize, x, evaluate
  from rasa.cli.arguments.default_arguments import add_logging_options
  from rasa.cli.utils import parse_last_positional_argument_as_model_path
  from rasa.plugin import plugin_manager
  from rasa.shared.exceptions import RasaException
  from rasa.shared.utils.cli import print_error
  from rasa.utils.common import configure_logging_and_warnings
label_desc: Use image node_id 1 for calling a global function with example usage: create_argument_parser() and returns: parser