code: def test_derive_shapelet_distances(X, shapelet, arr_desired):
      """Test that the actual results are the expected ones."""
      arr_actual = _derive_shapelet_distances(X, shapelet)
      np.testing.assert_allclose(
          arr_actual, arr_desired, atol=1e-5, rtol=0.0
      )
  
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 2 for calling a global function with example usage: test_derive_shapelet_distances(X, shapelet, arr_desired) without return types