code: def testRaggedToStringErrors(
      self, rt, error, summarize=None, exception=ValueError
  ):
      rt = ragged_factory_ops.constant(rt)
      with self.assertRaisesRegex(exception, error):
          self.evaluate(
              ragged_string_ops.ragged_tensor_to_string(
                  rt, summarize=summarize
              )
          )
  
imports: import os.path
  import tempfile
  from absl.testing import parameterized
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import logging_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_string_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 2 for calling the RaggedToStringTest obj's underlying member method code with example usage: obj.testRaggedToStringErrors(rt, error, summarize, exception) without return types