import collections


def get_frozen_mapping(table):
    """Return a copy of a default dictionary (assumed to have sets
    for values) with frozen sets for values.
    """
    out = collections.defaultdict(frozenset)

    for key in table:
        out[key] = frozenset(table[key])
    return out