class_docstr: Unit tests for the hadamard_grad function
class_docstr_tok: ["Unit","tests","for","the","hadamard_grad","function"]
docstr: Test that an error is raised with multiple measurements and partitioned shots.
code: def test_tape_with_partitioned_shots_multiple_measurements_raises(
      self,
  ):
      """Test that an error is raised with multiple measurements and partitioned shots."""
      tape = qml.tape.QuantumScript(
          [qml.RX(0.1, wires=0)],
          [qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliY(0))],
          shots=(1000, 10000),
      )
      with pytest.raises(NotImplementedError):
          qml.gradients.hadamard_grad(tape)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 2 for calling the TestHadamardGrad obj's underlying member method code with example usage: obj.test_tape_with_partitioned_shots_multiple_measurements_raises() without return types