def freeze_dict(dict_):
pairs = dict_.items()<EOL>key_getter = operator.itemgetter(<NUM_LIT:0>)<EOL>return tuple(sorted(pairs, key=key_getter))<EOL>
Freezes ``dict`` into ``tuple``.

    A typical usage is packing ``dict`` into hashable.

    e.g.::

        >>> freeze_dict({'a': 1, 'b': 2})
        (('a', 1), ('b', 2))