def create_annotationlist_id(manifest_info, canvas_id, annolist_idx, opts):
    """
    Return (uri, filename) for annotation list
    """
    prefix = opts['url_prefix']
    if not prefix:
        # use manifest id as prefix
        prefix = manifest_info['id']

    scheme = opts['annolist_name_scheme']
    if scheme == 'canvas':
        # use last part of canvas id
        canvas_part = canvas_id.split('/')[-1]
        fn = canvas_part + '-annolist.json'
        uri = prefix + '/' + fn
    
    else:
        fn = f"annolist-{annolist_idx}.json"
        uri = prefix + '/' + fn
        
    return uri, fn