def load_metadata(fileobj):
        """Load the submission from a file.

        :param filename: where to load the submission from
        """
        with gzip.GzipFile(fileobj=fileobj, mode='r') as z:
            return json.loads(z.readline())