code: def test_training_script_with_restart_stories(
      tmp_path: Path, domain_path: Text
  ):
      model_file = rasa.model_training.train_core(
          domain_path,
          config="data/test_config/max_hist_config.yml",
          stories="data/test_yaml_stories/stories_restart.yml",
          output=str(tmp_path),
          additional_arguments={},
      )
  
      assert Path(model_file).is_file()
  
file_path: rasa/tests/core/test_training.py
imports: from pathlib import Path
  from _pytest.monkeypatch import MonkeyPatch
  from typing import Text
  import pytest
  from rasa.core import training
  from rasa.core.agent import Agent
  from rasa.shared.core.domain import Domain
  import rasa.model_training
  import rasa.shared.utils.io
label_desc: Use image node_id 2 for calling a global function with example usage: test_training_script_with_restart_stories(tmp_path, domain_path) without return types