code: def testKeepWhitespace(self):
      test_value = constant_op.constant(
          [
              b"'Black Panther,' \t \xe2\x80\x98A Star Is Born\xe2\x80\x98 among AFI Awards honorees",
              b" .Ok.   Go  ",
          ]
      )
      expected_tokens = [
          [
              b"'",
              b"Black",
              b" ",
              b"Panther",
              b",'",
              b" \t ",
              b"\xe2\x80\x98",
              b"A",
              b" ",
              b"Star",
              b" ",
              b"Is",
              b" ",
              b"Born",
              b"\xe2\x80\x98",
              b" ",
              b"among",
              b" ",
              b"AFI",
              b" ",
              b"Awards",
              b" ",
              b"honorees",
          ],
          [b" ", b".", b"Ok", b".", b"   ", b"Go", b"  "],
      ]
      expected_offset_starts = [
          [
              0,
              1,
              6,
              7,
              14,
              16,
              19,
              22,
              23,
              24,
              28,
              29,
              31,
              32,
              36,
              39,
              40,
              45,
              46,
              49,
              50,
              56,
              57,
          ],
          [0, 1, 2, 4, 5, 8, 10],
      ]
      expected_offset_ends = [
          [
              1,
              6,
              7,
              14,
              16,
              19,
              22,
              23,
              24,
              28,
              29,
              31,
              32,
              36,
              39,
              40,
              45,
              46,
              49,
              50,
              56,
              57,
              65,
          ],
          [1, 2, 4, 5, 8, 10, 12],
      ]
      self.tokenizer = UnicodeScriptTokenizer(keep_whitespace=True)
      tokens = self.tokenizer.tokenize(test_value)
      self.assertAllEqual(tokens, expected_tokens)
      (tokens, starts, ends) = self.tokenizer.tokenize_with_offsets(
          test_value
      )
      self.assertAllEqual(tokens, expected_tokens)
      self.assertAllEqual(starts, expected_offset_starts)
      self.assertAllEqual(ends, expected_offset_ends)
  
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 test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops.unicode_script_tokenizer import UnicodeScriptTokenizer
label_desc: Use image node_id 12 for calling the UnicodeScriptTokenizerOpTest obj's underlying member method code with example usage: obj.testKeepWhitespace() without return types