def METHOD_NAME(self):
    tokenizer = self.get_tokenizer()
    src_texts = ["这将是一个很长很长的文本。" * 150, "short example"]
    tgt_texts = ["这个不是很长但是超过5个字。", "tiny"]
    batch = tokenizer(text=src_texts, padding=True, truncation=True, return_tensors="pd")
    targets = tokenizer(text=tgt_texts, max_length=5, padding=True, truncation=True, return_tensors="pd")
    assert batch.input_ids.shape == [2, 1024]
    assert batch.attention_mask.shape == [2, 1024]
    assert targets["input_ids"].shape == [2, 5]
    assert len(batch) == 2  # input_ids, attention_mask.