def mark_checked(self, institute, case, user, link,<EOL>unmark=False):
LOG.info("<STR_LIT>"<EOL>.format(case['<STR_LIT>']))<EOL>status = '<STR_LIT>' if unmark else '<STR_LIT>'<EOL>self.create_event(<EOL>institute=institute,<EOL>case=case,<EOL>user=user,<EOL>link=link,<EOL>category='<STR_LIT>',<EOL>verb='<STR_LIT>',<EOL>subject=status<EOL>)<EOL>LOG.info("<STR_LIT>"<EOL>.format(case['<STR_LIT>'], status))<EOL>analysis_checked = False if unmark else True<EOL>updated_case = self.case_collection.find_one_and_update(<EOL>{'<STR_LIT>': case['<STR_LIT>']},<EOL>{<EOL>'<STR_LIT>': {'<STR_LIT>': analysis_checked}<EOL>},<EOL>return_document=pymongo.ReturnDocument.AFTER<EOL>)<EOL>LOG.debug("<STR_LIT>")<EOL>return updated_case<EOL>
Mark a case as checked from an analysis point of view.

        Arguments:
            institute (dict): A Institute object
            case (dict): Case object
            user (dict): A User object
            link (str): The url to be used in the event
            unmark (bool): If case should ve unmarked

        Return:
            updated_case