code: def test_parameter_check(params, error, err_msg):
      """Test parameter validation."""
      ssa = SingularSpectrumAnalysis(**params)
      with pytest.raises(error, match=re.escape(err_msg)):
          ssa.transform(X)
  
file_path: pyts/pyts/decomposition/tests/test_ssa.py
imports: import numpy
  import pytest
  import re
  from pyts.decomposition.ssa import _outer_dot, _diagonal_averaging
  from pyts.decomposition import SingularSpectrumAnalysis
label_desc: Use image node_id 3 for calling a global function with example usage: test_parameter_check(params, error, err_msg) without return types