code: def _setup_trackers_for_testing(
      domain_path: Text, training_data_file: Text
  ) -> Tuple[List[TrackerWithCachedStates], Domain]:
      importer = RasaFileImporter(
          domain_path=domain_path,
          training_data_paths=[training_data_file],
      )
      validator = Validator.from_importer(importer)
  
      trackers = TrainingDataGenerator(
          validator.story_graph,
          domain=validator.domain,
          remove_duplicates=False,
          augmentation_factor=0,
      ).generate()
  
      return trackers, validator.domain
  
file_path: rasa/tests/core/training/test_story_conflict.py
imports: from typing import Text, List, Tuple
  from rasa.shared.core.domain import Domain
  from rasa.core.training.story_conflict import StoryConflict, find_story_conflicts, _get_previous_event
  from rasa.shared.core.generator import TrainingDataGenerator, TrackerWithCachedStates
  from rasa.validator import Validator
  from rasa.shared.importers.rasa import RasaFileImporter
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, PREVIOUS_ACTION, USER, ACTION_UNLIKELY_INTENT_NAME
label_desc: Use image node_id 1 for calling a global function with example usage: _setup_trackers_for_testing(domain_path, training_data_file) and returns: trackers,  validator