class_docstr: Test converters to_zx and from_zx.
docstr: Test the QNode decorator.
docstr_tok: ["Test","the","QNode","decorator","."]
code: def test_qnode_decorator(self):
      """Test the QNode decorator."""
      dev = qml.device("default.qubit", wires=2)
  
      @partial(qml.transforms.to_zx, expand_measurements=True)
      @qml.qnode(device=dev)
      def circuit(p):
          qml.RZ(p[0], wires=1)
          qml.RZ(p[1], wires=1)
          qml.RX(p[2], wires=0)
          qml.PauliZ(wires=0)
          qml.RZ(p[3], wires=1)
          qml.PauliX(wires=1)
          qml.CNOT(wires=[0, 1])
          qml.CNOT(wires=[1, 0])
          qml.SWAP(wires=[0, 1])
          return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1))
  
      params = [5 / 4 * np.pi, 3 / 4 * np.pi, 0.1, 0.3]
      g = circuit(params)
  
      assert isinstance(g, pyzx.graph.graph_s.GraphS)
  
imports: import sys
  from functools import partial
  import numpy
  import pytest
  import pennylane
  from pennylane.tape import QuantumScript
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 15 for calling the TestConvertersZX obj's underlying member method code with example usage: obj.test_qnode_decorator() and returns: qml