code: def testDetokenizeIsReversable(self):
      table = _CreateTable(_MIXED_LANG_VOCAB + [b""], 2)
      self.evaluate(table.initializer)
  
      tokenizer = WordpieceTokenizer(table)
  
      word_lists = [
          [b"hello", b"there", b"my", b"name", b"is", b"treadness"],
          [b"whatchamacallit?", b"you", b"said"],
          [_Utf8("大"), _Utf8("易")],
      ]
      words = ragged_factory_ops.constant(word_lists)
  
      subwords_ids = tokenizer.tokenize(words)
  
      # detokeinze input shape is (batch, ragged-words, ragged-wordpieces)
      words_output = tokenizer.detokenize(subwords_ids)
      words_output = array_ops.squeeze(words_output, axis=-1)
  
      self.assertAllEqual(words_output, words)
  
      # detokeinze input shape is (batch, ragged-wordpieces)
      subwords_id_seqs = subwords_ids.merge_dims(-2, -1)
      words_output = tokenizer.detokenize(subwords_id_seqs)
      self.assertAllEqual(words_output, words)
  
      # detokeinze input shape is a dense (batch, padded-wordpieces)
      words_output = tokenizer.detokenize(
          subwords_ids.merge_dims(-2, -1)
          # len(_MIXED_LANG_VOCAB) is ""
          .to_tensor(default_value=len(_MIXED_LANG_VOCAB))
      )
  
      self.assertAllEqual(words_output, words)
  
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 6 for calling the WordpieceOpTest obj's underlying member method code with example usage: obj.testDetokenizeIsReversable() without return types