code: def benchmarkTokenizer(self):
      sp_model = _get_sentencepiece_model()
      test_text = [
          (
              "This week we celebrate the casts and creatives who have come "
              "together to bring us our favorite."
          ),
          "More Stacks products demonstrated commitment to excellent support.",
          "Test, test, test.",
      ]
  
      tftext_sp = tf_text.SentencepieceTokenizer(sp_model)
      opt_sp = sentencepiece_tokenizer.FastSentencepieceTokenizer(
          sp_model
      )
      iter_number = 1000
      start = time.time()
      for _ in range(iter_number):
          _ = opt_sp.tokenize(test_text)
      self.report_benchmark(
          iters=iter_number, wall_time=time.time() - start, name="opt"
      )
      start = time.time()
      for _ in range(iter_number):
          _ = tftext_sp.tokenize(test_text)
      self.report_benchmark(
          iters=iter_number,
          wall_time=time.time() - start,
          name="tf.text",
      )
  
imports: import time
  from absl import flags
  import numpy
  import tensorflow.compat.v2
  import tensorflow_text
  from tensorflow.lite.python import interpreter
  from tensorflow.python.platform import gfile
  from tensorflow_text.python.ops import fast_sentencepiece_tokenizer
label_desc: Use image node_id 1 for calling the FastSentencepieceTokenizerBenchmark obj's underlying member method code with example usage: obj.benchmarkTokenizer() without return types