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 degrees does
  not match the number of inputs.
docstr_tok: ["Test","that","a","ValueError","is","raised","if","the","number","of","degrees","does","not","match","the","number","of","inputs","."]
code: def test_wrong_number_of_degrees(self, degree, n_inputs):
      """Test that a ValueError is raised if the number of degrees does
      not match the number of inputs."""
      with pytest.raises(
          ValueError,
          match="If multiple degrees are provided, their number",
      ):
          coefficients(self.dummy_fn, n_inputs, degree)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 2 for calling the TestExceptions obj's underlying member method code with example usage: obj.test_wrong_number_of_degrees(degree, n_inputs) without return types