class_docstr: Unit tests for the counts.process_samples method
docstr: Test that the counts output is correct for composite mid-circuit measurement
  values.
docstr_tok: ["Test","that","the","counts","output","is","correct","for","composite","mid-circuit","measurement","values","."]
code: def test_counts_shape_composite_measurement_value(self):
      """Test that the counts output is correct for composite mid-circuit measurement
      values."""
      shots = 1000
      samples = np.random.choice([0, 1], size=(shots, 2)).astype(
          np.int64
      )
      m0 = qml.measure(0)
      m1 = qml.measure(1)
  
      result = qml.counts(op=m0 | m1).process_samples(
          samples, wire_order=[0, 1]
      )
  
      assert len(result) == 2
      assert set(result.keys()) == {0, 1}
      samples = np.apply_along_axis(
          (lambda x: x[0] | x[1]), axis=1, arr=samples
      )
      assert result[0] == np.count_nonzero(samples == 0)
      assert result[1] == np.count_nonzero(samples == 1)
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import AllCounts, Counts, CountsMP
  from pennylane.wires import Wires
label_desc: Use image node_id 6 for calling the TestProcessSamples obj's underlying member method code with example usage: obj.test_counts_shape_composite_measurement_value() without return types