code: def test_parameter_check(params, error, err_msg):
      """Test parameter validation."""
      shapelet = ShapeletTransform(**params)
      with pytest.raises(error, match=re.escape(err_msg)):
          shapelet._check_params(X, y)
  
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 5 for calling a global function with example usage: test_parameter_check(params, error, err_msg) without return types