class_docstr: Tests that qml.cond works correctly with other transforms.
class_docstr_tok: ["Tests","that","qml.cond","works","correctly","with","other","transforms","."]
docstr: Test that operations given are arguments to a conditioned function are not queued.
docstr_tok: ["Test","that","operations","given","are","arguments","to","a","conditioned","function","are","not","queued","."]
code: def test_ops_as_args(
      self, op_fn, fn_additional_args, terminal_measurement
  ):
      """Test that operations given are arguments to a conditioned function are not queued."""
  
      # Need to construct now so that id is not random
      mp = qml.measurements.MidMeasureMP(0, id="foo")
      mv = qml.measurements.MeasurementValue([mp], lambda v: v)
  
      def circuit():
          qml.Hadamard(0)
          qml.apply(mp)
          qml.cond(mv, op_fn)(qml.T(0), *fn_additional_args)
          return qml.apply(terminal_measurement)
  
      tape = qml.tape.make_qscript(circuit)()
      assert len(tape) == 4
      assert tape[0] == qml.Hadamard(0)
      assert tape[1] == mp
      assert isinstance(tape[2], qml.ops.Conditional)
      assert tape[3] == terminal_measurement
  
file_path: pennylane/tests/ops/op_math/test_condition.py
imports: import pytest
  import pennylane
  from pennylane.ops.op_math.condition import ConditionalTransformError
label_desc: Use image node_id 4 for calling the TestOtherTransforms obj's underlying member method code with example usage: obj.test_ops_as_args(op_fn, fn_additional_args, terminal_measurement) and returns: qml