code: def add_errors_success_params(
      parser: argparse.ArgumentParser,
  ) -> None:
      parser.add_argument(
          "--successes",
          action="store_true",
          default=False,
          help="If set successful predictions will be written to a file.",
      )
      parser.add_argument(
          "--no-errors",
          action="store_true",
          default=False,
          help="If set incorrect predictions will NOT be written to a file.",
      )
      parser.add_argument(
          "--no-warnings",
          action="store_true",
          default=False,
          help="If set prediction warnings will NOT be written to a file.",
      )
  
file_path: rasa/rasa/cli/arguments/test.py
imports: import argparse
  from typing import Union
  from rasa.shared.constants import DEFAULT_MODELS_PATH, DEFAULT_RESULTS_PATH
  from rasa.cli.arguments.default_arguments import add_stories_param, add_model_param, add_nlu_data_param, add_endpoint_param, add_out_param
  from rasa.model import get_latest_model
  from rasa.shared.constants import DEFAULT_DOMAIN_PATH
label_desc: Use image node_id 8 for calling a global function with example usage: add_errors_success_params(parser) without return types