code: def test_truncation(self, encodings):
      single, _ = encodings
      single.truncate(2, 1, "right")
      assert single.tokens == ["[CLS]", "i"]
      assert single.overflowing[0].tokens == ["i", "love"]
  
file_path: hf-tokenizers/bindings/python/tests/bindings/test_encoding.py
imports: import pytest
  from tokenizers import BertWordPieceTokenizer
  from ..utils import bert_files, data_dir
label_desc: Use image node_id 11 for calling the TestEncoding obj's underlying member method code with example usage: obj.test_truncation(encodings) without return types