def get_modes_from_ids(mode_ids, modes):
    """
    Takes in a list of mode ids and a list of modes and returns a dictionary
    of the provided mode ids with their correpsonding mode objects.

    Parameters
    ----------
    mode_ids : list
        a list of mode IDs
    modes : dict
        a dictionary of modes indexed by their ids
    """
    return {mode_id: modes[mode_id]._data for mode_id in mode_ids}