code: def testResizeGradients(
      self, dtype, image_shape, target_shape, method, antialias
  ):
      rng = jtu.rand_default(self.rng())
      args_maker = lambda: (rng(image_shape, dtype),)
      jax_fn = partial(
          image.resize,
          shape=target_shape,
          method=method,
          antialias=antialias,
      )
      jtu.check_grads(jax_fn, args_maker(), order=2, rtol=1e-2, eps=1.0)
  
imports: from functools import partial
  import unittest
  import numpy
  from absl.testing import absltest
  import jax
  from jax import image
  from jax import numpy
  from jax._src import test_util
  from jax import config
label_desc: Use image node_id 4 for calling the ImageTest obj's underlying member method code with example usage: obj.testResizeGradients(dtype, image_shape, target_shape, method, antialias) without return types