class_docstr: Test that using the QNode with Torch integrates with the PennyLane stack
class_docstr_tok: ["Test","that","using","the","QNode","with","Torch","integrates","with","the","PennyLane","stack"]
docstr: Test circuit drawing when using the torch interface
docstr_tok: ["Test","circuit","drawing","when","using","the","torch","interface"]
code: def test_drawing(
      self, interface, dev, diff_method, grad_on_execution, device_vjp
  ):
      """Test circuit drawing when using the torch interface"""
  
      x = torch.tensor(0.1, requires_grad=True)
      y = torch.tensor([0.2, 0.3], requires_grad=True)
      z = torch.tensor(0.4, requires_grad=True)
  
      @qnode(
          dev,
          interface=interface,
          diff_method=diff_method,
          grad_on_execution=grad_on_execution,
          device_vjp=device_vjp,
      )
      def circuit(p1, p2=y, **kwargs):
          qml.RX(p1, wires=0)
          qml.RY(p2[0] * p2[1], wires=1)
          qml.RX(kwargs["p3"], wires=0)
          qml.CNOT(wires=[0, 1])
          return qml.expval(qml.PauliZ(0)), qml.expval(qml.PauliZ(1))
  
      circuit(p1=x, p3=z)
  
      result = qml.draw(circuit)(p1=x, p3=z)
      expected = "0: ──RX(0.10)──RX(0.40)─╭●─┤  <Z>\n1: ──RY(0.06)───────────╰X─┤  <Z>"
  
      assert result == expected
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import qnode
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 3 for calling the TestQNode obj's underlying member method code with example usage: obj.test_drawing(interface, dev, diff_method, grad_on_execution, device_vjp) and returns: qml,  qml