class_docstr: Unit tests for classical_shadow measurement
class_docstr_tok: ["Unit","tests","for","classical_shadow","measurement"]
docstr: Test that the shape of the MeasurementProcess instance is correct
docstr_tok: ["Test","that","the","shape","of","the","MeasurementProcess","instance","is","correct"]
code: def test_measurement_process_shape(self, wires, shots, seed):
      """Test that the shape of the MeasurementProcess instance is correct"""
      dev = qml.device("default.qubit.legacy", wires=wires, shots=shots)
      shots_obj = Shots(shots)
      res = qml.classical_shadow(wires=range(wires), seed=seed)
      assert res.shape(dev, shots_obj) == (2, shots, wires)
  
      # test an error is raised when device is None
      msg = "Shots must be specified to obtain the shape of a classical shadow measurement"
      with pytest.raises(
          qml.measurements.MeasurementShapeError, match=msg
      ):
          res.shape(dev, Shots(None))
  
imports: import autograd.numpy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import Shots
label_desc: Use image node_id 1 for calling the TestClassicalShadow obj's underlying member method code with example usage: obj.test_measurement_process_shape(wires, shots, seed) without return types