code: def test_circuit_non_param_operator_before_batched_operator():
      """Test a circuit where a non-parametric operation is located before a batched operator."""
      dev = qml.device("default.qubit", wires=2)
  
      @partial(qml.batch_input, argnum=0)
      @qml.qnode(dev)
      def circuit(input):
          qml.CNOT(wires=[0, 1])
          qml.RY(input, wires=1)
          qml.RX(0.1, wires=0)
          return qml.expval(qml.PauliZ(0) @ qml.PauliX(1))
  
      batch_size = 3
  
      input = np.linspace(0.1, 0.5, batch_size, requires_grad=False)
  
      res = circuit(input)
  
      assert res.shape == (batch_size,)
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_circuit_non_param_operator_before_batched_operator() and returns: qml