code: def test_run_action_help(
      run: Callable[..., RunResult],
  ):
      output = run("run", "actions", "--help")
  
      if sys.version_info.minor >= 9:
          # This is required because `argparse` behaves differently on
          # Python 3.9 and above. The difference is the changed formatting of help
          # output for CLI arguments with `nargs="*"
          help_text = f"""usage: {RASA_EXE} run actions [-h] [-v] [-vv] [--quiet]
                          [--logging-config-file LOGGING_CONFIG_FILE] [-p PORT]
                          [--cors [CORS ...]] [--actions ACTIONS]"""
      else:
          help_text = f"""usage: {RASA_EXE} run actions [-h] [-v] [-vv] [--quiet]
                          [--logging-config-file LOGGING_CONFIG_FILE] [-p PORT]
                          [--cors [CORS [CORS ...]]] [--actions ACTIONS]"""
  
      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
  
file_path: rasa/tests/cli/test_rasa_run.py
imports: import os
  import sys
  from typing import Callable
  from _pytest.pytester import RunResult
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 3 for calling a global function with example usage: test_run_action_help(run) without return types