def METHOD_NAME(examples):
    # max_length=None => use the model max length (it's actually the default)
    outputs = tokenizer(
        examples["sentence1"], examples["sentence2"], truncation=True, max_length=None, padding="max_length"
    )
    if "label" in examples:
        outputs["labels"] = [label_to_id[l] for l in examples["label"]]
    return outputs