class_docstr: Test the support for executing tapes with the same type of measurement
  multiple times using a device with shot vectors
class_docstr_tok: ["Test","the","support","for","executing","tapes","with","the","same","type","of","measurement","multiple","times","using","a","device","with","shot","vectors"]
docstr: Test multiple counts measurements.
docstr_tok: ["Test","multiple","counts","measurements","."]
code: def test_counts(
      self, shot_vector, measurement1, measurement2, device
  ):
      """Test multiple counts measurements."""
      dev = qml.device(device, wires=2, shots=shot_vector)
  
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.apply(measurement1), qml.apply(measurement2)
  
      qnode = qml.QNode(circuit, dev)
      qnode.construct([0.5], {})
  
      res = qml.execute(
          tapes=[qnode.tape], device=dev, gradient_fn=None
      )
  
      all_shots = sum(
          [shot_tuple.copies for shot_tuple in dev.shot_vector]
      )
  
      assert isinstance(res[0], tuple)
      assert len(res[0]) == all_shots
      for r in res[0]:
          assert isinstance(r, tuple)
          assert all(isinstance(res_item, dict) for res_item in r)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 4 for calling the TestSameMeasurementShotVector obj's underlying member method code with example usage: obj.test_counts(shot_vector, measurement1, measurement2, device) and returns: qml,  qml