class_docstr: Test composite application of dunder methods associated with the MeasurementValue class
class_docstr_tok: ["Test","composite","application","of","dunder","methods","associated","with","the","MeasurementValue","class"]
docstr: Test the composition of dunder methods, applying one whose argument is scalar and one whose argument
  is a boolean.
code: def test_composition_measurement_values_and_boolean(
      self, mv_dunder_name, boolean_dunder_name, scalar, boolean
  ):  # pylint: disable=too-many-arguments
      """Test the composition of dunder methods, applying one whose argument is scalar and one whose argument
      is a boolean."""
      m0 = MeasurementValue([mp1], lambda v: v)
  
      # 1. Apply first binary dunder method between m0 and scalar
      binary_dunder1 = getattr(m0, mv_dunder_name)
      sum_of_measurements = binary_dunder1(scalar)
      assert isinstance(sum_of_measurements, MeasurementValue)
  
      # 2. Apply second binary dunder method between m0 and boolean
      binary_dunder2 = getattr(m0, boolean_dunder_name)
      boolean_of_measurements = binary_dunder2(boolean)
      assert isinstance(boolean_of_measurements, MeasurementValue)
  
imports: from itertools import product
  import pytest
  import pennylane
  import pennylane.numpy
  from pennylane.measurements import MidMeasureMP, MeasurementValue
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TestMeasurementCompositeValueManipulation obj's underlying member method code with example usage: obj.test_composition_measurement_values_and_boolean(mv_dunder_name, boolean_dunder_name, scalar, boolean) without return types