code: def test_catch22_on_basic_motions():
      """Test of Catch22 on basic motions data."""
      # load basic motions data
      X_train, _ = load_basic_motions(split="train")
      indices = np.random.RandomState(4).choice(
          len(X_train), 5, replace=False
      )
  
      # fit Catch22 and assert transformed data is the same
      c22 = Catch22(replace_nans=True)
      data = c22.fit_transform(X_train.iloc[indices])
      testing.assert_array_almost_equal(
          data, catch22_basic_motions_data, decimal=4
      )
  
      # fit Catch22 with select features and assert transformed data is the same
      c22 = Catch22(replace_nans=True, features=feature_names)
      data = c22.fit_transform(X_train.iloc[indices])
      testing.assert_array_almost_equal(
          data,
          catch22_basic_motions_data[
              :, np.sort(np.r_[0:132:22, 5:132:22, 9:132:22])
          ],
          decimal=4,
      )
  
file_path: sktime/sktime/transformations/panel/tests/test_catch22.py
imports: import numpy
  import pytest
  from numpy import testing
  from sktime.datasets import load_basic_motions
  from sktime.tests.test_switch import run_test_for_class
  from sktime.transformations.panel.catch22 import Catch22
  from sktime.transformations.panel.catch22wrapper import Catch22Wrapper
label_desc: Use image node_id 1 for calling a global function with example usage: test_catch22_on_basic_motions() without return types