def METHOD_NAME(name, max_length, to_pad_id):
    values = inputs[name]
    res = []
    for index, value in enumerate(values):
        res.append(extend_max_lenth(value, max_length, to_pad_id))
    inputs[name] = res