class_docstr: Tests that the noise mitigation techniques raise an error whenever the
  used quantities are too small.
class_docstr_tok: ["Tests","that","the","noise","mitigation","techniques","raise","an","error","whenever","the","used","quantities","are","too","small","."]
docstr: Test that an error is raised when specifying an incorrect method.
docstr_tok: ["Test","that","an","error","is","raised","when","specifying","an","incorrect","method","."]
code: def test_mitigate_depolarizing_noise_wrong_method(self):
      """Test that an error is raised when specifying an incorrect method."""
      with pytest.raises(
          ValueError,
          match="Incorrect noise depolarization mitigation method specified",
      ):
          qml.kernels.mitigate_depolarizing_noise(
              np.array([0]), 4, method="some_dummy_strat"
          )
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestErrorForNonRealistic obj's underlying member method code with example usage: obj.test_mitigate_depolarizing_noise_wrong_method() without return types