class_docstr: Test for the properties
class_docstr_tok: ["Test","for","the","properties"]
docstr: Test that MeasurementProcess.map_wires works correctly when mp.mv
  is not None.
docstr_tok: ["Test","that","MeasurementProcess.map_wires","works","correctly","when","mp.mv","is","not","None","."]
code: def test_measurement_value_map_wires(self):
      """Test that MeasurementProcess.map_wires works correctly when mp.mv
      is not None."""
      m0 = qml.measure("a")
      m1 = qml.measure("b")
      m2 = qml.measure(0)
      m3 = qml.measure(1)
      m2.measurements[0].id = m0.measurements[0].id
      m3.measurements[0].id = m1.measurements[0].id
  
      wire_map = {"a": 0, "b": 1}
  
      mp1 = qml.sample(op=[m0, m1])
      mapped_mp1 = mp1.map_wires(wire_map)
      assert qml.equal(mapped_mp1, qml.sample(op=[m2, m3]))
  
      mp2 = qml.sample(op=m0 * m1)
      mapped_mp2 = mp2.map_wires(wire_map)
      assert qml.equal(mapped_mp2, qml.sample(op=m2 * m3))
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import ClassicalShadowMP, Counts, CountsMP, Expectation, ExpectationMP, MeasurementProcess, MeasurementTransform, MeasurementValue, MidMeasure, MidMeasureMP, MutualInfoMP, PurityMP, Probability, ProbabilityMP, Sample, SampleMeasurement, SampleMP, ShadowExpvalMP, Shots, State, StateMeasurement, StateMP, Variance, VarianceMP, VnEntropyMP, expval, sample, var
  from pennylane.operation import DecompositionUndefinedError
  from pennylane.queuing import AnnotatedQueue
  from pennylane.wires import Wires
label_desc: Use image node_id 8 for calling the TestProperties obj's underlying member method code with example usage: obj.test_measurement_value_map_wires() without return types