class_docstr: Test that JAX integrates with is_abstract
docstr: Test that no tensors are abstract when in eager mode
docstr_tok: ["Test","that","no","tensors","are","abstract","when","in","eager","mode"]
code: def test_eager(self):
      """Test that no tensors are abstract when in eager mode"""
      import jax
      import jax.numpy as jnp
  
      def cost(x, w):
          y = x**2
          z = jnp.ones([2, 2])
  
          assert not qml.math.is_abstract(w)
          assert not qml.math.is_abstract(x)
          assert not qml.math.is_abstract(y)
          assert not qml.math.is_abstract(z)
  
          return jnp.sum(y)
  
      x = jnp.array([0.5, 0.1])
      w = jnp.array(0.1)
  
      assert not qml.math.is_abstract(w)
      assert not qml.math.is_abstract(x)
  
      res = cost(x, w)
      assert res == 0.26
  
      grad = jax.grad(cost, argnums=0)(x, w)
      assert np.allclose(grad, 2 * x)
  
file_path: pennylane/tests/math/test_is_abstract.py
imports: import functools
  import numpy
  import pytest
  import pennylane
label_desc: Use image node_id 1 for calling the TestJAX obj's underlying member method code with example usage: obj.test_eager() and returns: jnp