code: def testSizeIsTensor(self):
      @def_function.function
      def do_resize(images, new_size):
          return image_ops.resize_images_v2(images, new_size)
  
      src_images = self.make_image_batch([[5, 8], [3, 2], [10, 4]], 3)
      resized_images = do_resize(
          src_images, constant_op.constant([2, 2])
      )
      self.assertIsInstance(resized_images, tensor.Tensor)
      self.assertTrue(
          resized_images.shape.is_compatible_with([3, 2, 2, 3])
      )
  
file_path: tensorflow/tensorflow/python/ops/ragged/ragged_resize_image_op_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import image_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged import ragged_concat_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 4 for calling the RaggedResizeImageOpTest obj's underlying member method code with example usage: obj.testSizeIsTensor() and returns: image_ops