docstr: Test that counts for mid-circuit measurement values
  are correct for a composite measurement value.
docstr_tok: ["Test","that","counts","for","mid-circuit","measurement","values","are","correct","for","a","composite","measurement","value","."]
code: def test_observable_is_composite_measurement_value_all_outcomes(
      self, shots, device_name
  ):
      """Test that counts for mid-circuit measurement values
      are correct for a composite measurement value."""
      dev = qml.device(device_name, wires=4, shots=shots)
  
      @qml.qnode(dev)
      def circuit():
          qml.PauliX(0)
          m0 = qml.measure(0)
          qml.PauliX(1)
          m1 = qml.measure(1)
          return qml.counts(m0 + m1, all_outcomes=True)
  
      res = circuit()
      if isinstance(shots, list):
          assert isinstance(res, tuple)
          assert len(res) == 2
  
          for r in res:
              assert isinstance(r, dict)
              assert len(r) == 3
              assert set(r.keys()) == {0, 1, 2}
              assert r[0] == 0
              assert r[1] == 0
              assert r[2] == 5
  
      else:
          assert isinstance(res, dict)
          assert len(res) == 3
          assert set(res.keys()) == {0, 1, 2}
          assert res[0] == 0
          assert res[1] == 0
          assert res[2] == 5
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Counts
  from pennylane.operation import Operator
label_desc: Use image node_id 11 for calling the TestCountsIntegration obj's underlying member method code with example usage: obj.test_observable_is_composite_measurement_value_all_outcomes(shots, device_name) and returns: qml