code: def testWordPieceOpWithMultipleRaggedRank(
      self,
      tokens,
      expected_subwords,
      vocab,
      expected_start=None,
      expected_end=None,
      use_unknown_token=True,
      token_out_type=dtypes.string,
  ):
      for row_splits_dtype in (dtypes.int32, dtypes.int64):
          ragged_tokens = ragged_factory_ops.constant(
              tokens, row_splits_dtype=row_splits_dtype
          )
          vocab_table = _CreateTable(vocab)
          self.evaluate(vocab_table.initializer)
          tokenizer = WordpieceTokenizer(
              vocab_table, token_out_type=token_out_type
          )
          subwords = tokenizer.tokenize(ragged_tokens)
          self.assertAllEqual(subwords, expected_subwords)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from tensorflow.python.compat import compat
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops.wordpiece_tokenizer import WordpieceTokenizer
label_desc: Use image node_id 2 for calling the WordpieceOpTest obj's underlying member method code with example usage: obj.testWordPieceOpWithMultipleRaggedRank(tokens, expected_subwords, vocab, expected_start, expected_end, use_unknown_token, token_out_type) without return types