code: def test_bad_inputs(classes, params, measurements):
      """Test adapters bad inputs error handling.
  
      Call `fit` of input adapter/s, and pass if ValueError was thrown. This test is
      useful for both KalmanFilterTransformerPK and KalmanFilterTransformerFP.
      """
      with pytest.raises(ValueError):
          for _class in classes:
              adapter = _class(**params)
              adapter.fit(X=measurements)
  
file_path: sktime/sktime/transformations/series/tests/test_kalman_filter.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from sktime.transformations.series.kalman_filter import KalmanFilterTransformerFP, KalmanFilterTransformerPK
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 8 for calling a global function with example usage: test_bad_inputs(classes, params, measurements) without return types