class_docstr: Unit tests for the batch_transform class
class_docstr_tok: ["Unit","tests","for","the","batch_transform","class"]
docstr: Test that a QNodes execution options are used by the
  batch transform
docstr_tok: ["Test","that","a","QNodes","execution","options","are","used","by","the","batch","transform"]
code: def test_use_qnode_execution_options(self, mocker):
      """Test that a QNodes execution options are used by the
      batch transform"""
      dev = qml.device("default.qubit", wires=2)
      cache = {}
  
      @qml.qnode(dev, max_diff=3, cache=cache)
      def circuit(x):
          qml.Hadamard(wires=0)
          qml.RY(x, wires=0)
          return qml.expval(qml.PauliX(0))
  
      a = 0.1
      b = 0.4
      x = 0.543
  
      fn = self.my_transform(circuit, a, b)
  
      spy = mocker.spy(qml, "execute")
      fn(x)
      assert spy.call_args[1]["max_diff"] == 3
      assert spy.call_args[1]["cache"] is cache
  
      # test that the QNode execution options remain unchanged
      assert circuit.execute_kwargs["max_diff"] == 3
  
imports: import functools
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 9 for calling the TestBatchTransform obj's underlying member method code with example usage: obj.test_use_qnode_execution_options(mocker) and returns: qml