def METHOD_NAME(confidence, approximate_confidence_is_enabled=True):
    if approximate_confidence_is_enabled:
        return 0.85 * (confidences <= confidence).sum() / len(confidences)
    else:
        return float(confidence)