def intern_dict(dictionary):
    return {
        KNOWN_KEYS.get(key, key): _intern_known_values(key, value)
        for key, value in dictionary.items()
    }
Applies the traits in the *from_context* to the *to_context*.
dataset/ETHPy150Open matrix-org/synapse/synapse/util/caches/__init__.py/intern_dict--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/ui_modal.py/_ModalDialog._apply_context