How to get metric result after running learner

I would like to run several different datasets and plan to put the training inside a function. I want to record the results from each dataset and specifically I am using the metric accuracy.

Is there a way to find the metric(accuracy) result from the learner after training?

learner creates a recorder object which automatically records metrics(among other things like loss, etc)