class_docstr: Test that exceptions for ill-formatted inputs are raised.
class_docstr_tok: ["Test","that","exceptions","for","ill-formatted","inputs","are","raised","."]
docstr: Test that a ValueError is raised if the number of filtering thresholds does
  not match the number of inputs.
docstr_tok: ["Test","that","a","ValueError","is","raised","if","the","number","of","filtering","thresholds","does","not","match","the","number","of","inputs","."]
code: def test_wrong_number_of_filter_thresholds(self, threshold, n_inputs):
      """Test that a ValueError is raised if the number of filtering thresholds does
      not match the number of inputs."""
      with pytest.raises(
          ValueError, match="If multiple filter_thresholds are provided"
      ):
          coefficients(
              self.dummy_fn,
              n_inputs,
              2,
              True,
              filter_threshold=threshold,
          )
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 3 for calling the TestExceptions obj's underlying member method code with example usage: obj.test_wrong_number_of_filter_thresholds(threshold, n_inputs) without return types