def load_image_json(image_id):
    try:
        json_path = store.image_json_path(image_id)
        json_data = store.get_content(json_path)
        # Note(dmp): unicode patch
        info = json.loads(json_data.decode('utf8'))
        if image_id != info['id']:
            warning('{0} is broken (json\'s id mismatch)'.format(image_id))
            return
        return json_data
    except (__HOLE__, exceptions.FileNotFoundError, json.JSONDecodeError):
        warning('{0} is broken (invalid json)'.format(image_id))
dataset/ETHPy150Open docker/docker-registry/scripts/create_ancestry.py/load_image_json