code: def add_subparser(
      subparsers: SubParsersAction,
      parents: List[argparse.ArgumentParser],
  ) -> None:
      """Add all visualization parsers.
  
      Args:
          subparsers: subparser we are going to attach to
          parents: Parent parsers, needed to ensure tree structure in argparse
      """
      visualize_parser = subparsers.add_parser(
          "visualize",
          parents=parents,
          conflict_handler="resolve",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
          help="Visualize stories.",
      )
      visualize_parser.set_defaults(func=visualize_stories)
  
      arguments.set_visualize_stories_arguments(visualize_parser)
  
file_path: rasa/rasa/cli/visualize.py
imports: import argparse
  import os
  from typing import List
  from rasa.cli import SubParsersAction
  from rasa.cli.arguments import visualize
  from rasa.shared.constants import DEFAULT_DATA_PATH
label_desc: Use image node_id 1 for calling a global function with example usage: add_subparser(subparsers, parents) without return types