code: def test_sentencepiece_tokenize(self):
      def dataset():
          yield "I have a cat."
  
      examples = []
      for example in tf_inputs.sentencepiece_tokenize(
          dataset(), _spm_path()
      ):
          examples.append(example)
      toks = list(examples[0])
      self.assertSequenceEqual([27, 43, 3, 9, 1712, 5], toks)
  
imports: import collections
  import os
  from unittest import mock
  import gin
  import numpy
  from t5.data import assert_dataset
  from t5.data import preprocessors
  import tensorflow
  import tensorflow_datasets
  from trax.data import inputs
  from trax.data import tf_inputs
label_desc: Use image node_id 29 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_sentencepiece_tokenize() without return types