def select_test_metrics(metrics, data):
    """
    Util function to check which subset of the provided test metrics is available in the current data dictionary
    """
    found = False
    eval_metrics = []
    for metric in metrics:
        if metric in data.keys():
            eval_metrics.append(metric)
            found = True
    return found, eval_metrics