code: def testBadRank(self):
      rt = ragged_tensor.RaggedTensor.from_tensor(
          array_ops.zeros([5, 5, 3])
      )
      with self.assertRaisesRegex(ValueError, "rank must be 4"):
          image_ops.resize_images_v2(rt, [10, 10])
  
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 5 for calling the RaggedResizeImageOpTest obj's underlying member method code with example usage: obj.testBadRank() without return types