class_docstr: Test that @qfunc_transform seamlessly integrates
  with an operator transform.
docstr: Since a qfunc transform always returns a qfunc,
  it cannot be applied to a QNode.
docstr_tok: ["Since","a","qfunc","transform","always","returns","a","qfunc",",","it","can","not","be","applied","to","a","QNode","."]
code: def test_qnode_error(self):
      """Since a qfunc transform always returns a qfunc,
      it cannot be applied to a QNode."""
      dev = qml.device("default.qubit", wires=2)
  
      def ansatz(weights):
          qml.Rot(*weights, wires=0)
          qml.CRX(0.5, wires=[0, 1])
  
      @simplify_rotation
      @qml.qnode(dev)
      def circuit(weights):
          ansatz(weights)
          qml.CNOT(wires=[0, 1])
          qml.Rot(0.0, 0.0, 0.0, wires=0)
          return qml.expval(qml.PauliX(1))
  
      weights = np.array([0.1, 0.0, 0.0])
  
      with pytest.raises(
          ValueError,
          match="QNodes cannot be declared as qfunc transforms",
      ):
          circuit(weights)
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 5 for calling the TestQFuncTransformIntegration obj's underlying member method code with example usage: obj.test_qnode_error() and returns: qml