def _find_annotation(self, template, annotation_id):
        """
        Look for an annotation with the given id in the given template
        """
        for annotation in template.annotations:
            aid = annotation.metadata.get('id', '')
            if aid == annotation_id:
                return annotation

        Look for an annotation with the given id in the given template
        
slybot/slybot/plugins/scrapely_annotations/extraction/container_extractors.py