def METHOD_NAME(self):
    src_text = ["A long paragraph for summarization.", "Another paragraph for summarization."]
    expected_src_tokens = [0, 250, 251, 17818, 13, 39186, 1938, 4, 2]
    for tokenizer in [BartTokenizer.from_pretrained("bart-large")]:
        batch = tokenizer(
            text=src_text,
            max_length=len(expected_src_tokens),
            padding=True,
            return_attention_mask=True,
            return_tensors="pd",
        )
        self.assertEqual([2, 9], batch.input_ids.shape)
        self.assertEqual([2, 9], batch.attention_mask.shape)
        result = batch.input_ids.tolist()[0]
        self.assertListEqual(expected_src_tokens, result)
        # Test that special tokens are reset