code: def make_image_batch(self, sizes, channels):
      if not sizes:
          return ragged_tensor.RaggedTensor.from_tensor(
              array_ops.zeros([0, 5, 5, channels]), ragged_rank=2
          )
      images = [
          array_ops.reshape(
              math_ops.range(w * h * channels * 1.0), [w, h, channels]
          )
          for (w, h) in sizes
      ]
      return ragged_concat_ops.stack(images)
  
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 1 for calling the RaggedResizeImageOpTest obj's underlying member method code with example usage: obj.make_image_batch(sizes, channels) and returns: ragged_concat_ops, ragged_tensor