def filter_annotations(annotations, tagsFilter=[]):
    """
        Args:
            annotations: [list of Node()] the annotations to use
            tagsFilter [list of strings]: if an annotation contains one of the tagFilters, then we accept it
        Returns:
            list of accepted annotations
    """

    annosOut = []
    for anno in annotations:
        tags = anno.get_child("tags").get_value()
        for tag in tags:
            if tag in tagsFilter:
                annosOut.append(anno)
                continue
    return annosOut