def _stable_ids_from_unambig(unambig):
    """Create stable IDs from an unambiguous IDs"""
    assoc = {}
    ri = {}
    for k in unambig:
        tag, untagged = k.split('_', 1)
        stab = '%s.%s' % (untagged, tag)
        assoc[stab] = k
        ri[k] = stab
    return assoc, ri
