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 __inv__ dunder method.
code: def test_inversion(self):
      """Test the __inv__ dunder method."""
      m = MeasurementValue([mp1], lambda v: v)
      m_inversion = ~m
      assert m_inversion[0] is True
      assert m_inversion[1] is False
  
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 18 for calling the TestMeasurementValueManipulation obj's underlying member method code with example usage: obj.test_inversion() without return types