code: def test_contracted_tde():
      """Test of contracted TDE on unit test data."""
      # load unit test data
      X_train, y_train = load_unit_test(split="train")
  
      # train contracted TDE
      tde = TemporalDictionaryEnsemble(
          time_limit_in_minutes=0.25,
          contract_max_n_parameter_samples=5,
          max_ensemble_size=2,
          randomly_selected_params=3,
          random_state=0,
      )
      tde.fit(X_train, y_train)
  
imports: import numpy
  import pytest
  from sktime.classification.dictionary_based._tde import TemporalDictionaryEnsemble
  from sktime.datasets import load_unit_test
  from sktime.tests.test_switch import run_test_for_class
label_desc: Use image node_id 2 for calling a global function with example usage: test_contracted_tde() without return types