code: def test_parameter_check(params, X, error, err_msg):
      """Test parameter validation."""
      dft = DiscreteFourierTransform(**params)
      with pytest.raises(error, match=re.escape(err_msg)):
          dft.fit(X, y)
  
file_path: pyts/pyts/approximation/tests/test_dft.py
imports: import numpy
  import pytest
  import re
  from sklearn.feature_selection import f_classif
  from pyts.approximation import DiscreteFourierTransform
label_desc: Use image node_id 2 for calling a global function with example usage: test_parameter_check(params, X, error, err_msg) without return types