def get_prediction_breakdown(dashboard):
    """Retrieves the prediction breakdown

    Parameters:
    ----------
    dashboard : plsexplain.dashboard.Dashboard

    Returns
    -------
    Callable
        The API handler for the prediction breakdown
    """

    def get_prediction_explanation_internal(index):
        return dashboard.breakdown_prediction(index)

    return get_prediction_explanation_internal