def METHOD_NAME(self):
    src_text = ["this is gunna be a long sentence " * 20]
    assert isinstance(src_text[0], str)
    desired_max_length = 10
    ids = self.tokenizer(src_text, max_length=desired_max_length, truncation=True).input_ids[0]
    self.assertEqual(ids[-2], 2)
    self.assertEqual(ids[-1], EN_CODE)
    self.assertEqual(len(ids), desired_max_length)