def sanger_ordered(self, institute_id=None, user_id=None):
query = {'<STR_LIT>': {<EOL>'<STR_LIT>': [<EOL>{'<STR_LIT>': '<STR_LIT>'},<EOL>],<EOL>}}<EOL>if institute_id:<EOL><INDENT>query['<STR_LIT>']['<STR_LIT>'].append({'<STR_LIT>': institute_id})<EOL><DEDENT>if user_id:<EOL><INDENT>query['<STR_LIT>']['<STR_LIT>'].append({'<STR_LIT>': user_id})<EOL><DEDENT>results = self.event_collection.aggregate([<EOL>query,<EOL>{'<STR_LIT>': {<EOL>'<STR_LIT>': "<STR_LIT>",<EOL>'<STR_LIT>': {'<STR_LIT>' : '<STR_LIT>'}<EOL>}}<EOL>])<EOL>sanger_ordered =  [item for item in results]<EOL>return sanger_ordered<EOL>
Get all variants with validations ever ordered.

        Args:
            institute_id(str) : The id of an institute
            user_id(str) : The id of an user

        Returns:
            sanger_ordered(list) : a list of dictionaries, each with "case_id" as keys and list of variant ids as values