class_docstr: Test all the dunder methods associated with the MeasurementValue class
class_docstr_tok: ["Test","all","the","dunder","methods","associated","with","the","MeasurementValue","class"]
docstr: Test the __eq__ dunder method between two MeasurementValues.
code: def test_branches_method(self):
      """Test the __eq__ dunder method between two MeasurementValues."""
      m1 = MeasurementValue([mp1], lambda v: v)
      m2 = MeasurementValue([mp2], lambda v: v)
      compared = m1 == m2
      branches = compared.branches
      assert branches[(0, 0)] is True
      assert branches[(0, 1)] is False
      assert branches[(1, 0)] is False
      assert branches[(1, 1)] is True
  
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 35 for calling the TestMeasurementValueManipulation obj's underlying member method code with example usage: obj.test_branches_method() without return types