def METHOD_NAME(self):
    keys_to_models_map = {
        "quality": ImageQualityAnnotation,
        "pathology": ImagePathologyAnnotation,
        "retina_pathology": RetinaImagePathologyAnnotation,
        "oct_retina_pathology": OctRetinaImagePathologyAnnotation,
        "text": ImageTextAnnotation,
    }
    image_id = self.kwargs.get("pk")
    if image_id is None:
        raise NotFound()
    data = {}
    for key, model in keys_to_models_map.items():
        objects = model.objects.filter(
            image__id=image_id, grader=self.request.user
        )
        try:
            data[key] = objects[0].id
        except (IndexError, AttributeError):
            data[key] = None
    return data