def _get_previous_assessment_section(self, assessment_section_id):
if self._my_map['<STR_LIT>'][<NUM_LIT:0>] == str(assessment_section_id):<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>return self._get_assessment_section(<EOL>Id(self._my_map['<STR_LIT>'][self._my_map['<STR_LIT>'].index(str(assessment_section_id)) - <NUM_LIT:1>]))<EOL><DEDENT>
Gets the previous section before section_id.

        Assumes that section list exists in taken and section_id is in section list.
        Assumes that Section parts only exist as children of Assessments