code: def visualize_stories(args: argparse.Namespace) -> None:
      import rasa.core.visualize
  
      args.stories = rasa.shared.data.get_core_directory(args.stories)
      if args.nlu is None and os.path.exists(DEFAULT_DATA_PATH):
          args.nlu = rasa.shared.data.get_nlu_directory(
              DEFAULT_DATA_PATH
          )
  
      rasa.core.visualize.visualize(
          args.domain,
          args.stories,
          args.nlu,
          args.out,
          args.max_history,
      )
  
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 2 for calling a global function with example usage: visualize_stories(args) without return types