def get_answer_id_for_question(self, question):
        """Get the answer_id corresponding to the answer given for question
        by looking at this :class:`~.UserQuestion`'s answer_options.
        The given :class:`~.Question` instance must have the same id as this
        :class:`~.UserQuestion`.

        That this method exists is admittedly somewhat weird. Unfortunately, it
        seems to be the only way to retrieve this information.
        """
        assert question.id == self.id
        for answer_option in self.answer_options:
            if answer_option.text == question.their_answer:
                return answer_option.id