code: def test_contracted_stc():
      """Test of contracted ShapeletTransformClassifier on unit test data."""
      # load unit test data
      X_train, y_train = load_unit_test(split="train")
  
      # train contracted STC
      stc = ShapeletTransformClassifier(
          estimator=RotationForest(
              contract_max_n_estimators=2, random_state=0
          ),
          max_shapelets=3,
          time_limit_in_minutes=0.25,
          contract_max_n_shapelet_samples=10,
          batch_size=5,
          random_state=0,
      )
      stc.fit(X_train, y_train)
  
imports: import pytest
  from sktime.classification.shapelet_based import ShapeletTransformClassifier
  from sktime.classification.sklearn import RotationForest
  from sktime.datasets import load_unit_test
  from sktime.tests.test_switch import run_test_for_class
label_desc: Use image node_id 1 for calling a global function with example usage: test_contracted_stc() without return types