code: def testRaggedInput(self):
      test_value = ragged_factory_ops.constant(
          [[b"IloveFlume!", b"and tensorflow"], [b"go raggedtensor"]]
      )
      test_label = ragged_factory_ops.constant(
          [
              [
                  [
                      # I
                      0,
                      # love
                      0,
                      1,
                      1,
                      1,
                      # Flume
                      0,
                      1,
                      1,
                      1,
                      1,
                      # !
                      0,
                      # paddings
                      0,
                      0,
                      0,
                  ],
                  [
                      # and
                      0,
                      1,
                      1,
                      # ' '
                      1,
                      # tensorflow
                      0,
                      1,
                      1,
                      1,
                      1,
                      1,
                      1,
                      1,
                      1,
                      1,
                  ],
              ],
              [
                  [
                      # go
                      0,
                      1,
                      # ' '
                      0,
                      # ragged
                      0,
                      1,
                      1,
                      1,
                      1,
                      1,
                      # tensor
                      0,
                      1,
                      1,
                      1,
                      1,
                      1,
                  ]
              ],
          ]
      )
      expected_tokens = [
          [[b"I", b"love", b"Flume", b"!"], [b"and", b"tensorflow"]],
          [[b"go", b"ragged", b"tensor"]],
      ]
      (tokens, starts, ends) = self.tokenizer.tokenize_with_offsets(
          test_value, test_label
      )
      self.assertAllEqual(tokens, expected_tokens)
      tokens_by_offsets = _RaggedSubstr(test_value, starts, ends)
      self.assertAllEqual(tokens_by_offsets, expected_tokens)
  
      # Use the same arguments to test the tokenize() version, without offsets.
      tokens = self.tokenizer.tokenize(test_value, test_label)
      self.assertAllEqual(tokens, expected_tokens)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import string_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops.split_merge_tokenizer import SplitMergeTokenizer
label_desc: Use image node_id 8 for calling the SplitMergeTokenizerTest obj's underlying member method code with example usage: obj.testRaggedInput() without return types