code: def test_generating_trackers(
      default_model_storage: ModelStorage,
      default_execution_context: ExecutionContext,
      config: Dict[Text, Any],
      expected_trackers: int,
  ):
      reader = YAMLStoryReader()
      steps = reader.read_from_file(
          "data/test_yaml_stories/stories.yml"
      )
      component = TrainingTrackerProvider.create(
          {**TrainingTrackerProvider.get_default_config(), **config},
          default_model_storage,
          Resource("xy"),
          default_execution_context,
      )
  
      trackers = component.provide(
          story_graph=StoryGraph(steps), domain=Domain.empty()
      )
  
      assert len(trackers) == expected_trackers
      assert all(
          isinstance(t, TrackerWithCachedStates) for t in trackers
      )
  
file_path: rasa/tests/graph_components/providers/test_training_tracker_provider.py
imports: from typing import Dict, Text, Any
  import pytest
  from rasa.graph_components.providers.training_tracker_provider import TrainingTrackerProvider
  from rasa.engine.graph import ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.generator import TrackerWithCachedStates
  from rasa.shared.core.training_data.story_reader.yaml_story_reader import YAMLStoryReader
  from rasa.shared.core.training_data.structures import StoryGraph
label_desc: Use image node_id 1 for calling a global function with example usage: test_generating_trackers(default_model_storage, default_execution_context, config, expected_trackers) without return types