class_docstr: Test that the state reconstruction is correct for a variety of states
docstr: Test that the state reconstruction is correct for different indices
  of considered snapshots
code: def test_subset_reconstruction_iterable(self, wires):
      """Test that the state reconstruction is correct for different indices
      of considered snapshots"""
      circuit = hadamard_circuit(wires)
      bits, recipes = circuit()
      shadow = ClassicalShadow(bits, recipes)
  
      # choose 1000 random indices
      snapshots = np.random.choice(
          np.arange(10000, dtype=np.int64), size=1000, replace=False
      )
      state = shadow.global_snapshots(snapshots=snapshots)
      assert state.shape == (len(snapshots), 2**wires, 2**wires)
  
      # check the results against obtaining the full global snapshots
      expected = shadow.global_snapshots()
      for i, t in enumerate(snapshots):
          assert np.allclose(expected[t], state[i])
  
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 4 for calling the TestStateReconstruction obj's underlying member method code with example usage: obj.test_subset_reconstruction_iterable(wires) without return types