code: def test_sequence_builders(self):
      tokenizer = self.tokenizer_class.from_pretrained(
          "allegro/herbert-base-cased"
      )
  
      text = tokenizer.encode(
          "konstruowanie sekwencji", add_special_tokens=False
      )
      text_2 = tokenizer.encode(
          "konstruowanie wielu sekwencji", add_special_tokens=False
      )
  
      encoded_sentence = tokenizer.build_inputs_with_special_tokens(
          text
      )
      encoded_pair = tokenizer.build_inputs_with_special_tokens(
          text, text_2
      )
  
      assert encoded_sentence == [0] + text + [2]
      assert encoded_pair == [0] + text + [2] + text_2 + [2]
  
file_path: transformers/tests/models/herbert/test_tokenization_herbert.py
imports: import json
  import os
  import unittest
  from transformers import HerbertTokenizer, HerbertTokenizerFast
  from transformers.models.herbert.tokenization_herbert import VOCAB_FILES_NAMES
  from transformers.testing_utils import get_tests_dir, require_tokenizers, slow
  from ...test_tokenization_common import TokenizerTesterMixin
label_desc: Use image node_id 5 for calling the HerbertTokenizationTest obj's underlying member method code with example usage: obj.test_sequence_builders() without return types