def METHOD_NAME(
    attributed_metric_values: Dict[str, MetricValues]
) -> Dict[str, MetricValues]:
    """
    Converts "attributed_metric_values" to Numpy array for each "batch_id" key (recursively, wherever possible).
    """
    if attributed_metric_values is None:
        return {}
    batch_id: str
    metric_values: MetricValues
    return {
        batch_id: _condition_metric_values(metric_values=metric_values)
        for batch_id, metric_values in attributed_metric_values.items()
    }