class_docstr: Test the transform function (validate and dispatch).
docstr: Ensure that return type is preserved with qfunc transforms.
code: def test_qfunc_transform_multiple_measurements(self, fn, type_):
      """Ensure that return type is preserved with qfunc transforms."""
  
      def qfunc():
          qml.Hadamard(0)
          qml.CNOT([0, 1])
          qml.PauliZ(1)
          return fn(
              [qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1))]
          )
  
      dispatched_transform = transform(first_valid_transform)
      transformed_qfunc = dispatched_transform(qfunc, 2)
      qnode = qml.QNode(transformed_qfunc, qml.device("default.qubit"))
      result = qnode()
      assert isinstance(result, type_)
  
imports: from typing import Sequence, Callable
  from functools import partial
  import pytest
  import pennylane
  from pennylane.transforms.core import transform, TransformError, TransformContainer
label_desc: Use image node_id 17 for calling the TestTransformDispatcher obj's underlying member method code with example usage: obj.test_qfunc_transform_multiple_measurements(fn, type_) and returns: fn