code: def test_grad_no_ints():
      """Test that grad raises a `ValueError` if the trainable parameter is an int."""
  
      x = qml.numpy.array(2)
  
      def f(x):
          return x**2
  
      with pytest.raises(
          ValueError,
          match="Autograd does not support differentiation of ints.",
      ):
          qml.grad(f)(x)
  
      y = qml.numpy.array([2, 2])
      with pytest.raises(
          ValueError,
          match="Autograd does not support differentiation of ints.",
      ):
          qml.jacobian(f)(y)
  
imports: import autograd
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: test_grad_no_ints() and returns: unknown