class_docstr: Test that the state reconstruction is correct for a variety of states
docstr: Test that a warning is raised when a very large state is reconstructed
code: def test_large_state_warning(self, monkeypatch):
      """Test that a warning is raised when a very large state is reconstructed"""
      circuit = hadamard_circuit(17, shots=2)
      bits, recipes = circuit()
      shadow = ClassicalShadow(bits, recipes)
  
      msg = "Querying density matrices for n_wires > 16 is not recommended, operation will take a long time"
  
      with monkeypatch.context() as m:
          # don't run the actual state computation since we only want the warning
          m.setattr(onp, "einsum", lambda *args, **kwargs: None)
          m.setattr(onp, "reshape", lambda *args, **kwargs: None)
  
          with pytest.warns(UserWarning, match=msg):
              shadow.global_snapshots()
  
imports: import pytest
  import numpy
  import pennylane
  import pennylane.numpy
  from pennylane.shadows import ClassicalShadow, median_of_means, pauli_expval
label_desc: Use image node_id 5 for calling the TestStateReconstruction obj's underlying member method code with example usage: obj.test_large_state_warning(monkeypatch) without return types