class_docstr: Test the new return types for multiple measurements, it should always return a tuple containing the single
  measurements.
class_docstr_tok: ["Test","the","new","return","types","for","multiple","measurements",",","it","should","always","return","a","tuple","containing","the","single","measurements","."]
docstr: Test the expval and counts measurements together.
docstr_tok: ["Test","the","expval","and","counts","measurements","together","."]
code: def test_expval_counts(self, measurement, shots, device):
      """Test the expval and counts measurements together."""
      if shots is None:
          pytest.skip("Counts requires finite shots.")
  
      dev = qml.device(device, wires=2, shots=shots)
  
      def circuit(x):
          qml.Hadamard(wires=[0])
          qml.CRX(x, wires=[0, 1])
          return qml.expval(qml.PauliX(1)), qml.apply(measurement)
  
      qnode = qml.QNode(circuit, dev)
      qnode.construct([0.5], {})
  
      res = qml.execute(
          tapes=[qnode.tape], device=dev, gradient_fn=None
      )
  
      # Expval
      assert isinstance(res[0][0], np.ndarray)
      assert res[0][0].shape == ()
  
      # Counts
      assert isinstance(res[0][1], dict)
      assert sum(res[0][1].values()) == shots
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 7 for calling the TestMultipleReturns obj's underlying member method code with example usage: obj.test_expval_counts(measurement, shots, device) and returns: qml,  qml