def METHOD_NAME(project_id):
    """Get annotatiols for a project with the supplied type"""
    project_task_annotations = TaskAnnotation.query.filter_by(
        project_id=project_id
    ).all()
    project_task_annotations_dto = ProjectTaskAnnotationsDTO()
    project_task_annotations_dto.project_id = project_id
    if project_task_annotations:
        for row in project_task_annotations:
            task_annotation_dto = TaskAnnotationDTO()
            task_annotation_dto.task_id = row.task_id
            task_annotation_dto.properties = row.properties
            task_annotation_dto.annotation_type = row.annotation_type
            task_annotation_dto.annotation_source = row.annotation_source
            project_task_annotations_dto.tasks.append(task_annotation_dto)
    return project_task_annotations_dto