code: def test_persist_and_load_tracker_featurizer(
      tmp_path: Text, moodbot_domain: Domain
  ):
      state_featurizer = SingleStateFeaturizer()
      state_featurizer.prepare_for_training(moodbot_domain)
      tracker_featurizer = MaxHistoryTrackerFeaturizer(state_featurizer)
  
      tracker_featurizer.persist(tmp_path)
  
      loaded_tracker_featurizer = TrackerFeaturizer.load(tmp_path)
  
      assert loaded_tracker_featurizer is not None
      assert loaded_tracker_featurizer.state_featurizer is not None
  
imports: from typing import Text, Dict, List, Optional
  import numpy
  import pytest
  from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer
  from rasa.core.featurizers.single_state_featurizer import IntentTokenizerSingleStateFeaturizer
  from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import MaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import IntentMaxHistoryTrackerFeaturizer
  from rasa.core.featurizers.tracker_featurizers import FullDialogueTrackerFeaturizer
  from rasa.shared.core.domain import Domain
  from tests.core.utilities import user_uttered
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.nlu.constants import INTENT, ACTION_NAME
  from rasa.shared.core.constants import ACTION_LISTEN_NAME, ACTION_UNLIKELY_INTENT_NAME, USER, PREVIOUS_ACTION
  from rasa.shared.core.events import ActionExecuted
  from rasa.shared.core.trackers import DialogueStateTracker
  from rasa.utils.tensorflow.constants import LABEL_PAD_ID
  from rasa.utils.tensorflow.model_data import ragged_array_to_ndarray
  from rasa.core.exceptions import InvalidTrackerFeaturizerUsageError
label_desc: Use image node_id 2 for calling a global function with example usage: test_persist_and_load_tracker_featurizer(tmp_path, moodbot_domain) without return types