def map_ids(dict_list):
    """
    Converts a list of dictionaries to a dictionary of dictionaries (i.e., a map), where the key is the ID ('id')
    given as a key in the dictionaries.

    Parameters
    ----------
    dict_list : list of dicts
        List of dictionaries containing the key 'id'.

    Returns
    -------
    dict
    """

    id_map = dict()
    for dict_i in dict_list:
        id_map[dict_i['id']] = dict_i

    return id_map