code: def test_x_help(run: Callable[..., RunResult]):
      output = run("x", "--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="*"
          version_dependent = [
              "[-i INTERFACE]",
              "[-p PORT]",
              "[-t AUTH_TOKEN]",
              "[--cors [CORS ...]]",
              "[--enable-api]",
              "[--response-timeout RESPONSE_TIMEOUT]",
          ]
      else:
          version_dependent = [
              "[-i INTERFACE]",
              "[-p PORT]",
              "[-t AUTH_TOKEN]",
              "[--cors [CORS [CORS ...]]]",
              "[--enable-api]",
              "[--response-timeout RESPONSE_TIMEOUT]",
          ]
  
      help_text = (
          [
              f"{RASA_EXE} x",
              "[-h]",
              "[-v]",
              "[-vv]",
              "[--quiet]",
              "[-m MODEL]",
              "[--no-prompt]",
              "[--production]",
              "[--config-endpoint CONFIG_ENDPOINT]",
              "[--log-file LOG_FILE]",
              "[--use-syslog]",
              "[--syslog-address SYSLOG_ADDRESS]",
              "[--syslog-port SYSLOG_PORT]",
              "[--syslog-protocol SYSLOG_PROTOCOL]",
              "[--endpoints ENDPOINTS]",
          ]
          + version_dependent
          + [
              "--remote-storage REMOTE_STORAGE]",
              "[--ssl-certificate SSL_CERTIFICATE]",
              "[--ssl-keyfile SSL_KEYFILE]",
              "[--ssl-ca-file SSL_CA_FILE]",
              "[--ssl-password SSL_PASSWORD]",
              "[--credentials CREDENTIALS]",
              "[--connector CONNECTOR]",
              "[--jwt-secret JWT_SECRET]",
              "[--jwt-method JWT_METHOD]",
          ]
      )
  
      # expected help text lines should appear somewhere in the output
      printed_help = " ".join(output.outlines)
      for item in help_text:
          assert item in printed_help
  
imports: from pathlib import Path
  import sys
  import argparse
  import pytest
  from typing import Callable
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import RunResult
  from aioresponses import aioresponses
  import rasa.shared.utils.io
  from rasa.cli import x
  from rasa.utils.endpoints import EndpointConfig
  from rasa.core.utils import AvailableEndpoints
  import rasa.version
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 1 for calling a global function with example usage: test_x_help(run) without return types