code: def test_st_on_unit_test():
      """Test of ShapeletTransform on unit test data."""
      # load unit test data
      X_train, y_train = load_unit_test(split="train")
      indices = np.random.RandomState(0).choice(
          len(y_train), 5, replace=False
      )
  
      # fit the shapelet transform
      st = RandomShapeletTransform(
          max_shapelets=10, n_shapelet_samples=500, random_state=0
      )
      st.fit(X_train.iloc[indices], y_train[indices])
  
      # assert transformed data is the same
      data = st.transform(X_train.iloc[indices])
      testing.assert_array_almost_equal(
          data, shapelet_transform_unit_test_data, decimal=4
      )
  
imports: import numpy
  import pytest
  from numpy import testing
  from sktime.datasets import load_basic_motions, load_unit_test
  from sktime.tests.test_switch import run_test_for_class
  from sktime.transformations.panel.shapelet_transform import RandomShapeletTransform
label_desc: Use image node_id 1 for calling a global function with example usage: test_st_on_unit_test() without return types