def METHOD_NAME(true, pred, func, unique_labels):
    scores = []
    for lab in unique_labels:
        scores.append(func(np.where(true != lab, 1, 0), np.where(pred != lab, 1, 0)))
    return float(sum(scores)) / len(scores)