docstr: Test that the shape of the MeasurementProcess matches the shape
  of the tape execution
docstr_tok: ["Test","that","the","shape","of","the","MeasurementProcess","matches","the","shape","of","the","tape","execution"]
code: def test_shape_matches(self):
      """Test that the shape of the MeasurementProcess matches the shape
      of the tape execution"""
      wires = 2
      shots = 100
      H = qml.PauliZ(0)
  
      circuit = hadamard_circuit(wires, shots)
      circuit.construct((H,), {})
  
      res = qml.execute([circuit.tape], circuit.device, None)[0]
      expected_shape = qml.shadow_expval(H).shape(
          circuit.device, Shots(shots)
      )
  
      assert res.shape == expected_shape
  
imports: import copy
  import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ClassicalShadowMP, Shots
  from pennylane.measurements.classical_shadow import ShadowExpvalMP
label_desc: Use image node_id 3 for calling the TestExpvalMeasurement obj's underlying member method code with example usage: obj.test_shape_matches() without return types