def METHOD_NAME(eval_preds):
    labels = paddle.to_tensor(eval_preds.label_ids, dtype="int64")
    preds = paddle.to_tensor(eval_preds.predictions)
    preds = paddle.nn.functional.softmax(preds, axis=-1)
    labels = paddle.argmax(labels, axis=-1)
    metric = Accuracy()
    correct = metric.compute(preds, labels)
    metric.update(correct)
    acc = metric.accumulate()
    return {"accuracy": acc}