code: def test(args: argparse.Namespace) -> None:
      """Run end-to-end tests."""
      setattr(args, "e2e", True)
      run_core_test(args)
      run_nlu_test(args)
  
imports: import argparse
  import asyncio
  import logging
  import os
  from typing import List, Optional, Text, Dict, Union, Any
  from rasa.cli import SubParsersAction
  import rasa.shared.data
  from rasa.shared.exceptions import YamlException
  import rasa.shared.utils.io
  import rasa.shared.utils.cli
  from rasa.cli.arguments import test
  from rasa.core.constants import FAILED_STORIES_FILE, SUCCESSFUL_STORIES_FILE, STORIES_WITH_WARNINGS_FILE
  from rasa.shared.constants import CONFIG_SCHEMA_FILE, DEFAULT_E2E_TESTS_PATH, DEFAULT_CONFIG_PATH, DEFAULT_MODELS_PATH, DEFAULT_DATA_PATH, DEFAULT_RESULTS_PATH
  import rasa.shared.utils.validation
  import rasa.cli.utils
  import rasa.utils.common
  from rasa.shared.importers.importer import TrainingDataImporter
label_desc: Use image node_id 5 for calling a global function with example usage: test(args) without return types