class_docstr: Tests conditional operations
docstr: Test that passing an argument to the conditioned operation using the
  keyword syntax works.
docstr_tok: ["Test","that","passing","an","argument","to","the","conditioned","operation","using","the","keyword","syntax","works","."]
code: def test_keyword_syntax(self):
      """Test that passing an argument to the conditioned operation using the
      keyword syntax works."""
      op = qml.RY
  
      dev = qml.device("default.qubit", wires=3)
  
      @qml.qnode(dev)
      def qnode1(par):
          qml.Hadamard(0)
          qml.ctrl(op, control=0)(phi=par, wires=1)
          return qml.expval(qml.PauliZ(1))
  
      @qml.qnode(dev)
      @qml.defer_measurements
      def qnode2(par):
          qml.Hadamard(0)
          m_0 = qml.measure(0)
          qml.cond(m_0, op)(phi=par, wires=1)
          return qml.expval(qml.PauliZ(1))
  
      par = np.array(0.3)
  
      assert np.allclose(qnode1(par), qnode2(par))
  
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 10 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_keyword_syntax() and returns: qml, qml