code: def testSplitByOffsetsMatrixRagged(self):
      test_value = [["hello", "hola"], ["goodbye"]]
      starts = [[[0], [0, 2]], [[0, 4]]]
      ends = [[[4], [2, 4]], [[3, 7]]]
      expected = []
      expected.append(
          [
              _split_by_offsets(
                  test_value[0][j], starts[0][j], ends[0][j]
              )
              for j in range(2)
          ]
      )
      expected.append(
          [
              _split_by_offsets(
                  test_value[1][j], starts[1][j], ends[1][j]
              )
              for j in range(1)
          ]
      )
      vals = self.byte_splitter.split_by_offsets(
          tf.ragged.constant(test_value),
          tf.ragged.constant(starts),
          tf.ragged.constant(ends),
      )
      self.assertAllEqual(vals, expected)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import tensorflow_text
  from tensorflow.lite.python import interpreter
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 17 for calling the ByteSplitterTest obj's underlying member method code with example usage: obj.testSplitByOffsetsMatrixRagged() without return types