code: def test_test_core_warnings(
      run_in_simple_project_with_model: Callable[..., RunResult]
  ):
      write_yaml(
          {
              "language": "en",
              "pipeline": [],
              "policies": [
                  {"name": "MemoizationPolicy", "max_history": 3},
                  {
                      "name": "UnexpecTEDIntentPolicy",
                      "max_history": 5,
                      "epochs": 1,
                  },
                  {
                      "name": "TEDPolicy",
                      "max_history": 5,
                      "epochs": 1,
                      "constrain_similarities": True,
                  },
                  {"name": "RulePolicy"},
              ],
          },
          "config.yml",
      )
  
      simple_test_story_yaml = """
  version: "{LATEST_TRAINING_DATA_FORMAT_VERSION}"
  stories:
  - story: unlikely path
    steps:
    - user: |
        very terrible
      intent: mood_unhappy
    - action: utter_cheer_up
    - action: utter_did_that_help
    - intent: affirm
    - action: utter_happy
  """
      with open("tests/test_stories.yml", "w") as f:
          f.write(simple_test_story_yaml)
  
      run_in_simple_project_with_model("test", "core", "--no-warnings")
      assert not os.path.exists(f"results/{STORIES_WITH_WARNINGS_FILE}")
  
      run_in_simple_project_with_model("test", "core")
      assert os.path.exists(f"results/{STORIES_WITH_WARNINGS_FILE}")
  
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 3 for calling a global function with example usage: test_test_core_warnings(run_in_simple_project_with_model) without return types