code: def test_simple_circuit(mocker):
      """Test that batching works for a simple circuit"""
      dev = qml.device("default.qubit", wires=3)
  
      @qml.batch_params
      @qml.qnode(dev, interface="autograd")
      def circuit(data, x, weights):
          qml.templates.AmplitudeEmbedding(
              data, wires=[0, 1, 2], normalize=True
          )
          qml.RX(x, wires=0)
          qml.RY(0.2, wires=1)
          qml.templates.StronglyEntanglingLayers(
              weights, wires=[0, 1, 2]
          )
          return qml.probs(wires=[0, 2])
  
      batch_size = 5
      data = np.random.random((batch_size, 8))
      x = np.linspace(0.1, 0.5, batch_size, requires_grad=True)
      weights = np.ones((batch_size, 10, 3, 3), requires_grad=True)
  
      spy = mocker.spy(circuit.device, "execute")
      res = circuit(data, x, weights)
      assert res.shape == (batch_size, 4)
      assert len(spy.call_args[0][0]) == batch_size
  
imports: import functools
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_simple_circuit(mocker) and returns: qml