def get_results_from_firebase(firebase):
    """
    The function to download all results from firebase

    Parameters
    ----------
    firebase : pyrebase firebase object
        initialized firebase app with admin authentication

    Returns
    -------
    results : dict
        The results in a dictionary with the following format:
        {
        "task_id" {
            "user1_id": {
                "data": {...}
                },
            "user2_id": {
                "data": {...}
                },
            }
        }
    """

    fb_db = firebase.database()
    results = fb_db.child("results").get().val()
    return results