def METHOD_NAME(st, end):
    model.eval()
    output = model(valid_data, st, end)
    loss_val = criterion(output, valid_labels[st:end])
    acc_val = paddle.metric.accuracy(
        input=output, label=valid_labels[st:end], k=1)
    return loss_val.item(), acc_val.item()