code: def test_circuit_integration(self):
      """Tests that the OperationRecorder integrates well with the
      core behaviour of PennyLane."""
      expected_output = (
          "Operations\n"
          + "==========\n"
          + "PauliY(wires=[0])\n"
          + "PauliY(wires=[1])\n"
          + "RZ(0.4, wires=[0])\n"
          + "RZ(0.4, wires=[1])\n"
          + "CNOT(wires=[0, 1])\n"
          + "\n"
          + "Observables\n"
          + "===========\n"
      )
  
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev)
      def circuit(a, b, c):
          qml.RX(a, wires=0)
          qml.RY(b, wires=1)
  
          with qml.tape.OperationRecorder() as recorder:
              ops = [
                  qml.PauliY(0),
                  qml.PauliY(1),
                  qml.RZ(c, wires=0),
                  qml.RZ(c, wires=1),
                  qml.CNOT(wires=[0, 1]),
              ]
  
          assert str(recorder) == expected_output
          assert recorder.queue == ops
  
          return qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1))
  
      circuit(0.1, 0.2, 0.4)
  
imports: import pennylane
label_desc: Use image node_id 1 for calling the TestOperationRecorder obj's underlying member method code with example usage: obj.test_circuit_integration() and returns: qml,  qml