code: def test_upsample2d(self):
      x = shaparange((2, 3, 10, 30))
      shape = x.shape
      for method in self.methods:
          y = objax.functional.core.ops.upsample_2d(x, (2, 3), method)
          output = jax.image.resize(
              x.transpose([0, 2, 3, 1]),
              shape=(shape[0], shape[2] * 2, shape[3] * 3, shape[1]),
              method=method,
          ).transpose([0, 3, 1, 2])
          self.assertEqual(y.tolist(), output.tolist())
  
file_path: objax/tests/functional_interpolate.py
imports: import unittest
  import jax
  import jax.numpy
  import numpy
  import objax
label_desc: Use image node_id 1 for calling the TestUpsample obj's underlying member method code with example usage: obj.test_upsample2d() without return types