def METHOD_NAME(batch):
    """
    dynamical padding
    """
    token_ids = [data["input_ids"] for data in batch]
    max_length = max([len(t) for t in token_ids])
    target_ids = [data["labels"] for data in batch]
    token_ids_padded = padding(token_ids, max_length)
    target_ids_padded = padding(target_ids, max_length)
    return {"input_ids": token_ids_padded, "labels": target_ids_padded}