class_docstr: Tests that verify that the cond transform works as expect.
class_docstr_tok: ["Tests","that","verify","that","the","cond","transform","works","as","expect","."]
docstr: Tape that uses cond by passing both a true and false func.
docstr_tok: ["Tape","that","uses","cond","by","passing","both","a","true","and","false","func","."]
code: def tape_with_else(f, g, r, meas):
      """Tape that uses cond by passing both a true and false func."""
      with qml.queuing.AnnotatedQueue() as q:
          m_0 = qml.measure(0)
          qml.cond(m_0, f, g)(r)
          qml.apply(meas)
  
      tape = qml.tape.QuantumScript.from_queue(q)
      return tape
  
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 2 for calling the TestCond obj's underlying member method code with example usage: obj.tape_with_else(f, g, r, meas) and returns: tape