class_docstr: Unit tests for classical_shadow measurement
class_docstr_tok: ["Unit","tests","for","classical_shadow","measurement"]
docstr: Test that an error is raised when a device with shots=None is used
  to obtain classical shadows
docstr_tok: ["Test","that","an","error","is","raised","when","a","device","with","shots=None","is","used","to","obtain","classical","shadows"]
code: def test_shots_none_error(self, wires, seed):
      """Test that an error is raised when a device with shots=None is used
      to obtain classical shadows"""
      circuit = get_circuit(wires, None, seed)
  
      msg = "not accepted for analytic simulation on default.qubit"
      with pytest.raises(qml.DeviceError, match=msg):
          circuit()
  
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 7 for calling the TestClassicalShadow obj's underlying member method code with example usage: obj.test_shots_none_error(wires, seed) without return types