code: def add_test_core_argument_group(
      parser: Union[
          argparse.ArgumentParser, argparse._ActionsContainer
      ],
      include_e2e_argument: bool = False,
  ) -> None:
      add_stories_param(parser, "test")
      parser.add_argument(
          "--max-stories",
          type=int,
          help="Maximum number of stories to test on.",
      )
      add_out_param(
          parser,
          default=DEFAULT_RESULTS_PATH,
          help_text="Output path for any files created during the evaluation.",
      )
      if include_e2e_argument:
          parser.add_argument(
              "--e2e",
              "--end-to-end",
              action="store_true",
              help="Run an end-to-end evaluation for combined action and "
              "intent prediction. Requires a story file in end-to-end "
              "format.",
          )
      add_endpoint_param(
          parser,
          help_text="Configuration file for the connectors as a yml file.",
      )
      parser.add_argument(
          "--fail-on-prediction-errors",
          action="store_true",
          help="If a prediction error is encountered, an exception "
          "is thrown. This can be used to validate stories during "
          "tests, e.g. on travis.",
      )
      parser.add_argument(
          "--url",
          type=str,
          help="If supplied, downloads a story file from a URL and "
          "trains on it. Fetches the data by sending a GET request "
          "to the supplied URL.",
      )
      parser.add_argument(
          "--evaluate-model-directory",
          default=False,
          action="store_true",
          help="Should be set to evaluate models trained via "
          "'rasa train core --config <config-1> <config-2>'. "
          "All models in the provided directory are evaluated "
          "and compared against each other.",
      )
      add_no_plot_param(parser)
      add_errors_success_params(parser)
  
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 4 for calling a global function with example usage: add_test_core_argument_group(parser, include_e2e_argument) without return types