code: def test_extract_all_shapelets(params, res_desired):
      """Test that the actual results are the expected ones."""
      res_actual = _extract_all_shapelets(**params)
  
      for arr_actual, arr_desired in zip(
          res_actual[0], res_desired["shapelets"]
      ):
          np.testing.assert_array_equal(arr_actual, arr_desired)
  
      for arr_actual, arr_desired in zip(
          res_actual[1], res_desired["lengths"]
      ):
          np.testing.assert_array_equal(arr_actual, arr_desired)
  
      for arr_actual, arr_desired in zip(
          res_actual[2], res_desired["start_idx"]
      ):
          np.testing.assert_array_equal(arr_actual, arr_desired)
  
      for arr_actual, arr_desired in zip(
          res_actual[3], res_desired["end_idx"]
      ):
          np.testing.assert_array_equal(arr_actual, arr_desired)
  
file_path: pyts/pyts/transformation/tests/test_shapelet_transform.py
imports: import numpy
  import pytest
  import re
  from pyts.transformation import ShapeletTransform
  from pyts.transformation.shapelet_transform import _extract_all_shapelets, _derive_shapelet_distances, _derive_all_distances, _remove_similar_shapelets
label_desc: Use image node_id 1 for calling a global function with example usage: test_extract_all_shapelets(params, res_desired) without return types