code: def test_input_text_truncation(self):
      sentence = "Testing out sentencepiece"
      expected = [
          Token(value="▁T", start=0, end=1),
          Token(value="est", start=1, end=4),
          Token(value="ing", start=4, end=7),
          Token(value="▁out", start=8, end=11),
      ]
      sp_tokenizer = SentencePieceTokenizer.from_config(
          SentencePieceTokenizer.Config(
              sp_model_path="pytext/data/test/data/sentencepiece.model",
              max_input_text_length=11,
          )
      )
      tokens = sp_tokenizer.tokenize(sentence)
      self.assertEqual(tokens, expected)
  
imports: import unittest
  from pytext.data.tokenizers import GPT2BPETokenizer, SentencePieceTokenizer, SPEandWordTokenizer, Tokenizer, WordPieceTokenizer
  from pytext.data.tokenizers.tokenizer import Token
label_desc: Use image node_id 2 for calling the SentencePieceTokenizerTest obj's underlying member method code with example usage: obj.test_input_text_truncation() without return types