import gzip
import json


def load_gzip(file):
    """
    Read a gzip file.
    :param file: file to read
    :return: the dictionary contained in the gzip file
    """
    with gzip.open(file, "rb") as f:
        data = f.read()
    d = json.loads(data)
    return d