class_docstr: Some new tests, including tests on `tf.function`.
class_docstr_tok: ["Some","new","tests",",","including","tests","on","`","tf.function","`","."]
code: def testTokenizerBuiltOutsideTfFunctionFromModel(
      self, text_inputs, expected_outputs
  ):
      model_buffer = _LoadTestModelBuffer()
      tokenizer = FastWordpieceTokenizer(model_buffer=model_buffer)
  
      @def_function.function
      def Preprocess(text_input):
          return tokenizer.tokenize(text_input)
  
      # Basic tests.
      self.assertAllEqual(Preprocess(text_inputs), expected_outputs)
  
      # Test with tf.data.DataSets.
      dataset = dataset_ops.Dataset.from_tensor_slices(text_inputs)
      self.assertDatasetProduces(
          dataset.map(Preprocess), expected_outputs
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl import flags
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_text
  from tensorflow.lite.python import interpreter
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops.fast_wordpiece_tokenizer import FastWordpieceTokenizer
label_desc: Use image node_id 7 for calling the FastWordpieceOpAdditionalTest obj's underlying member method code with example usage: obj.testTokenizerBuiltOutsideTfFunctionFromModel(text_inputs, expected_outputs) and returns: tokenizer