code: def test_test_core_help(run: Callable[..., RunResult]):
      output = run("test", "core", "--help")
  
      help_text = f"""usage: {RASA_EXE} test core [-h] [-v] [-vv] [--quiet]
                        [--logging-config-file LOGGING_CONFIG_FILE]
                        [-m MODEL [MODEL ...]] [-s STORIES]
                        [--max-stories MAX_STORIES] [--out OUT] [--e2e]
                        [--endpoints ENDPOINTS] [--fail-on-prediction-errors]
                        [--url URL] [--evaluate-model-directory] [--no-plot]
                        [--successes] [--no-errors] [--no-warnings]"""
  
      lines = help_text.split("\n")
      # expected help text lines should appear somewhere in the output
      printed_help = {line.strip() for line in output.outlines}
      for line in lines:
          assert line.strip() in printed_help
  
imports: import os
  import shutil
  from pathlib import Path
  from shutil import copyfile
  from pytest import Testdir, Pytester, ExitCode
  from _pytest.pytester import RunResult
  from rasa.core.constants import CONFUSION_MATRIX_STORIES_FILE, STORIES_WITH_WARNINGS_FILE
  from rasa.constants import RESULTS_FILE
  from rasa.shared.constants import DEFAULT_RESULTS_PATH
  from rasa.shared.utils.io import list_files, write_yaml, write_text_file
  from typing import Callable
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 17 for calling a global function with example usage: test_test_core_help(run) without return types