def METHOD_NAME(self, task, email_id):
    """
    Verifies that the email we are trying to update is actually associated with the task in question.
    """
    email_id_from_task = json.loads(task.task_input).get("email_id", None)
    if email_id_from_task != email_id:
        raise TaskUpdateException(
            f"Cannot update instructor task '{task.id} for course '{task.course_id}', the email id '{email_id}' "
            f"specified in the request does not match the email id associated with the task"
        )