docstr: To run with original TF tokenizer:
  
  !wget https://github.com/google-research/bigbird/raw/master/bigbird/vocab/pegasus.model
  !pip install tensorflow-text
  
  import tensorflow.compat.v2 as tf
  import tensorflow_text as tft
  
  VOCAB_FILE = "./pegasus.model"
  
  tf.enable_v2_behavior()
  
  test_str = "This is an example string that is used to test the original TF implementation against the HF implementation"
  tokenizer = tft.SentencepieceTokenizer(model=tf.io.gfile.GFile(VOCAB_FILE, "rb").read())
  
  tokenizer.tokenize(test_str)
docstr_tok: ["To","run","with","original","TF","tokenizer",":","!","wget","https",":","\/\/github.com\/google-research\/bigbird\/raw\/master\/bigbird\/vocab\/pegasus.model","!","pip","install","tensorflow-text","import","tensorflow.compat.v2","as","tf","import","tensorflow_text","as","tft","VOCAB_FILE","=","``",".\/pegasus.model","''","tf.enable_v2_behavior","(",")","test_str","=","``","This","is","an","example","string","that","is","used","to","test","the","original","TF","implementation","against","the","HF","implementation","''","tokenizer","=","tft.SentencepieceTokenizer","(","model=tf.io.gfile.GFile","(","VOCAB_FILE",",","``","rb","''",")",".read","(",")",")","tokenizer.tokenize","(","test_str",")"]
code: def test_equivalence_to_orig_tokenizer(self):
      """
      To run with original TF tokenizer:
  
      !wget https://github.com/google-research/bigbird/raw/master/bigbird/vocab/pegasus.model
      !pip install tensorflow-text
  
      import tensorflow.compat.v2 as tf
      import tensorflow_text as tft
  
      VOCAB_FILE = "./pegasus.model"
  
      tf.enable_v2_behavior()
  
      test_str = "This is an example string that is used to test the original TF implementation against the HF implementation"
      tokenizer = tft.SentencepieceTokenizer(model=tf.io.gfile.GFile(VOCAB_FILE, "rb").read())
  
      tokenizer.tokenize(test_str)
      """
  
      test_str = (
          "This is an example string that is used to test the original TF implementation against the HF"
          " implementation"
      )
  
      token_ids = self._large_tokenizer(test_str).input_ids
  
      self.assertListEqual(
          token_ids,
          [
              182,
              117,
              142,
              587,
              4211,
              120,
              117,
              263,
              112,
              804,
              109,
              856,
              25016,
              3137,
              464,
              109,
              26955,
              3137,
              1,
          ],
      )
  
imports: import unittest
  from transformers import PegasusTokenizer, PegasusTokenizerFast
  from transformers.testing_utils import get_tests_dir, require_sentencepiece, require_tokenizers, require_torch, slow
  from transformers.utils import cached_property
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 7 for calling the BigBirdPegasusTokenizationTest obj's underlying member method code with example usage: obj.test_equivalence_to_orig_tokenizer() without return types