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 general _apply method that can apply an arbitrary function to a measurement.
code: def test_apply_function_to_measurement(self):
      """Test the general _apply method that can apply an arbitrary function to a measurement."""
  
      m = MeasurementValue([mp1], lambda v: v)
  
      sin_of_m = m._apply(np.sin)  # pylint: disable=protected-access
      assert sin_of_m[0] == 0.0
      assert sin_of_m[1] == np.sin(1)
  
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 1 for calling the TestMeasurementValueManipulation obj's underlying member method code with example usage: obj.test_apply_function_to_measurement() without return types