code: def test_parameter_check(params, error, err_msg):
      """Test parameter validation."""
      boss = BOSS(**params)
      with pytest.raises(error, match=re.escape(err_msg)):
          boss.fit(X, y)
  
file_path: pyts/pyts/transformation/tests/test_boss.py
imports: import numpy
  import pytest
  import re
  from scipy.sparse import csr_matrix
  from sklearn.feature_extraction.text import CountVectorizer
  from pyts.transformation import BOSS
  from pyts.approximation import SymbolicFourierApproximation
label_desc: Use image node_id 1 for calling a global function with example usage: test_parameter_check(params, error, err_msg) without return types