code: def testVectorTooFewActions(self):
      test_strings = constant_op.constant(
          [b"IloveFlume!", b"and tensorflow"]
      )
  
      # Below, each pair of logits [l1, l2] indicates a "split" action
      # if l1 < l2 and a "merge" otherwise.
      test_logits = constant_op.constant(
          [
              [
                  # "I"
                  [5.0, -3.2],  # I: split
                  # "love"
                  [2.2, -1.0],  # l: split
                  [0.2, 12.0],  # o: merge
                  [0.0, 11.0],  # v: merge
                  [-3.0, 3.0],  # e: merge
                  # "Flume"
                  [10.0, 0.0],  # F: split
                  [0.0, 11.0],  # l: merge
                  [0.0, 11.0],  # u: merge
                  [0.0, 12.0],  # m: merge
                  [0.0, 12.0],  # e: merge
                  # "!"
                  [5.2, -7.0],  # !: split
                  # no padding, instead, we truncated the logits for 2nd string.
              ],
              [
                  # "and"
                  [2.0, 0.7],  # a: split
                  [0.2, 1.5],  # n: merge
                  [0.5, 2.3],  # d: merge
                  # " "
                  [1.7, 7.0],  # <space>: merge
                  # "tensorf"; no logits for final three chars, "low".
                  [2.2, 0.1],  # t: split
                  [0.2, 3.1],  # e: merge
                  [1.1, 2.5],  # n: merge
                  [0.7, 0.9],  # s: merge
                  [0.6, 1.0],  # o: merge
                  [0.3, 1.0],  # r: merge
                  [0.2, 2.2],  # f: merge
              ],
          ]
      )
      with self.assertRaisesRegexp(
          errors.InvalidArgumentError,
          r'Number of logits, 11, is insufficient for text "and tensorflow"',
      ):
          self.evaluate(
              self.tokenizer.tokenize_with_offsets(
                  test_strings, test_logits
              )
          )
  
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 errors
  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_tensor
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops.split_merge_from_logits_tokenizer import SplitMergeFromLogitsTokenizer
label_desc: Use image node_id 6 for calling the SplitMergeFromLogitsTokenizerTest obj's underlying member method code with example usage: obj.testVectorTooFewActions() without return types