@utilities.arguments_not_none<EOL><INDENT>@check_effective<EOL>def finish_assessment(self, assessment_taken_id):<DEDENT>
assessment_taken = self._get_assessment_taken(assessment_taken_id)<EOL>assessment_taken_map = assessment_taken._my_map<EOL>if assessment_taken.has_started() and not assessment_taken.has_ended():<EOL><INDENT>assessment_taken_map['<STR_LIT>'] = DateTime.utcnow()<EOL>assessment_taken_map['<STR_LIT>'] = True<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>collection.save(assessment_taken_map)<EOL><DEDENT>else:<EOL><INDENT>raise errors.IllegalState()<EOL><DEDENT>
Indicates the entire assessment is complete.

        arg:    assessment_taken_id (osid.id.Id): ``Id`` of the
                ``AssessmentTaken``
        raise:  IllegalState - ``has_begun()`` is ``false or is_over()``
                is ``true``
        raise:  NotFound - ``assessment_taken_id`` is not found
        raise:  NullArgument - ``assessment_taken_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*