code: def test_initial_unbatched_parameter():
      """Test that an exception is raised if an initial parameter
      is not batched"""
  
      dev = qml.device("default.qubit", wires=1)
  
      @qml.batch_params
      @qml.qnode(dev)
      def circuit(x, y):
          qml.RY(x, wires=[0])
          qml.RX(y, wires=[0])
          return qml.expval(qml.PauliZ(0))
  
      x = np.array(0.2)
      y = np.array([0.3, 0.4, 0.5])
  
      with pytest.raises(
          ValueError, match="Parameter 0.2 does not contain a batch"
      ):
          circuit(x, y)
  
imports: import functools
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 14 for calling a global function with example usage: test_initial_unbatched_parameter() and returns: qml