class_docstr: Tests conditional operations
docstr: Test that the underlying tape contains the correct operations.
docstr_tok: ["Test","that","the","underlying","tape","contains","the","correct","operations","."]
code: def test_correct_ops_in_tape(self, terminal_measurement):
      """Test that the underlying tape contains the correct operations."""
      first_par = 0.1
      sec_par = 0.3
  
      with qml.queuing.AnnotatedQueue() as q:
          m_0 = qml.measure(4, reset=True)
          qml.cond(m_0, qml.RY)(first_par, wires=1)
  
          m_1 = qml.measure(3)
          qml.cond(m_1, qml.RZ)(sec_par, wires=1)
          qml.apply(terminal_measurement)
  
      tape = qml.tape.QuantumScript.from_queue(q)
  
      tapes, _ = qml.defer_measurements(tape)
      tape = tapes[0]
  
      assert len(tape.operations) == 4
      assert len(tape.measurements) == 1
  
      # Check the two underlying Controlled instances
      first_ctrl_op = tape.operations[2]
      assert isinstance(first_ctrl_op, qml.ops.op_math.Controlled)
      assert qml.equal(first_ctrl_op.base, qml.RY(first_par, 1))
  
      sec_ctrl_op = tape.operations[3]
      assert isinstance(sec_ctrl_op, qml.ops.op_math.Controlled)
      assert qml.equal(sec_ctrl_op.base, qml.RZ(sec_par, 1))
  
      assert tape.measurements[0] is terminal_measurement
  
imports: import math
  import pytest
  import pennylane
  from pennylane.measurements import MidMeasureMP, MeasurementValue
  import pennylane.numpy
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 1 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_correct_ops_in_tape(terminal_measurement) without return types