def METHOD_NAME(path):
    pickle_kwargs = {"encoding": "utf-8"} if six.PY3 else {}
    with open(path, "rb") as f:
        try:
            return collections.OrderedDict(six.moves.cPickle.load(f, **pickle_kwargs))
        except Exception as e:
            raise Exception(
                "env deserialization of sandbox {} failed: {}".format(self, e),
            )