code: def test_parameter_check(params, error, err_msg):
      """Test parameter validation."""
      clf = ROCKET(**params)
      with pytest.raises(error, match=re.escape(err_msg)):
          clf.fit(X)
  
file_path: pyts/pyts/transformation/tests/test_rocket.py
imports: import numpy
  import pytest
  import re
  from pyts.transformation.rocket import generate_kernels, apply_one_kernel_one_sample, apply_all_kernels
  from pyts.transformation import ROCKET
label_desc: Use image node_id 4 for calling a global function with example usage: test_parameter_check(params, error, err_msg) without return types