class_docstr: Unit tests for torch execution
class_docstr_tok: ["Unit","tests","for","torch","execution"]
docstr: Test setting jacobian options
code: def test_jacobian_options(self, interface, mocker):
      """Test setting jacobian options"""
      spy = mocker.spy(qml.gradients, "param_shift")
  
      a = torch.tensor([0.1, 0.2], requires_grad=True)
  
      dev = qml.device("default.qubit.legacy", wires=1)
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.RY(a[0], wires=0)
          qml.RX(a[1], wires=0)
          qml.expval(qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
  
      res = execute(
          [tape],
          dev,
          gradient_fn=param_shift,
          gradient_kwargs={"shifts": [(np.pi / 4,)] * 2},
          interface=interface,
      )[0]
  
      res.backward()
  
      for args in spy.call_args_list:
          assert args[1]["shift"] == [(np.pi / 4,)] * 2
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.gradients import finite_diff, param_shift
  from pennylane import execute
label_desc: Use image node_id 1 for calling the TestTorchExecuteUnitTests obj's underlying member method code with example usage: obj.test_jacobian_options(interface, mocker) without return types