code: def test_get_training_trackers_for_policy(
      supported_data: SupportedData,
      n_rule_trackers: int,
      n_ml_trackers: int,
  ):
      # create five trackers (two rule-based and three ML trackers)
      trackers = [
          DialogueStateTracker("id1", slots=[], is_rule_tracker=True),
          DialogueStateTracker("id2", slots=[], is_rule_tracker=False),
          DialogueStateTracker("id3", slots=[], is_rule_tracker=False),
          DialogueStateTracker("id4", slots=[], is_rule_tracker=True),
          DialogueStateTracker("id5", slots=[], is_rule_tracker=False),
      ]
  
      trackers = SupportedData.trackers_for_supported_data(
          supported_data, trackers
      )
  
      rule_trackers = [
          tracker for tracker in trackers if tracker.is_rule_tracker
      ]
      ml_trackers = [
          tracker for tracker in trackers if not tracker.is_rule_tracker
      ]
  
      assert len(rule_trackers) == n_rule_trackers
      assert len(ml_trackers) == n_ml_trackers
  
imports: import uuid
  from pathlib import Path
  from typing import Type, List, Text, Optional, Dict, Any
  import dataclasses
  import numpy
  import pytest
  from _pytest.tmpdir import TempPathFactory
  from rasa.engine.graph import ExecutionContext, GraphSchema
  from rasa.engine.storage.local_model_storage import LocalModelStorage
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.shared.constants import DEFAULT_SENDER_ID
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, ACTION_UNLIKELY_INTENT_NAME
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import ActionExecuted, Event, UserUttered, EntitiesAdded, SlotSet
  from rasa.core import training
  from rasa.core.constants import POLICY_MAX_HISTORY
  from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer, MaxHistoryTrackerFeaturizer, IntentMaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer, IntentTokenizerSingleStateFeaturizer
  from rasa.core.policies.policy import SupportedData, InvalidPolicyConfig, Policy
  from rasa.core.policies.rule_policy import RulePolicy
  from rasa.core.policies.ted_policy import TEDPolicy
  from rasa.core.policies.memoization import AugmentedMemoizationPolicy, MemoizationPolicy
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.shared.core.generator import TrackerWithCachedStates
  from tests.dialogues import TEST_DEFAULT_DIALOGUE
  from tests.core.utilities import get_tracker, tracker_from_dialogue
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_training_trackers_for_policy(supported_data, n_rule_trackers, n_ml_trackers) without return types