code: def test_test_core_comparison_after_train(
      run_in_simple_project: Callable[..., RunResult],
      trained_rasa_model: str,
      tmp_path: Path,
  ):
      path = Path(tmp_path / "comparison_models")
      path.mkdir()
  
      run_one = Path(path / "run_1")
      run_one.mkdir()
      shutil.copy(trained_rasa_model, run_one)
  
      run_two = Path(path / "run_2")
      run_two.mkdir()
      shutil.copy(trained_rasa_model, run_two)
  
      write_text_file("[1]", path / "num_stories.json")
  
      run_in_simple_project(
          "test",
          "core",
          "-m",
          str(path),
          "--stories",
          "data/stories",
          "--evaluate-model-directory",
      )
  
      assert os.path.exists(
          os.path.join(DEFAULT_RESULTS_PATH, RESULTS_FILE)
      )
      assert os.path.exists(
          os.path.join(
              DEFAULT_RESULTS_PATH, "core_model_comparison_graph.pdf"
          )
      )
  
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 14 for calling a global function with example usage: test_test_core_comparison_after_train(run_in_simple_project, trained_rasa_model, tmp_path) without return types