def METHOD_NAME(metric: Metric) -> float:
    """Returns the scalar value of a Ludwig metric.
    Params:
        metric: Metric object
    Returns:
        float: scalar value of the metric
    """
    return metric.compute().detach().cpu().numpy().item()