def create_annotationlist_v2(manifest_info, annolist_id, annotation_infos, add_context=False):
    """
    Return V2 AnnotationList structure from annotation_infos
    """
    annolist = {
        '@type': 'sc:AnnotationList',
        '@id': annolist_id,
        'within': manifest_info['id']
    }
    if add_context:
        annolist['@context'] = 'http://iiif.io/api/presentation/2/context.json'
        
    annolist['resources'] = [ai['annotation'] for ai in annotation_infos]
    return annolist