def get_cds_obj(cds_id, pred_cds):
    """Find the CDS object given an id

    :param cds_id: id of the CDS to find
    :param pred_cds: dictionary of the predicted CDS

    :return: a CDS object
    """
    if cds_id not in pred_cds:
        raise ValueError("CDS not found for %s" % (cds_id))
    return pred_cds[cds_id]