<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_duplicates_for(self, analysis):
 """Returns the duplicates from the current worksheet that were created by using the analysis passed in as the source :param analysis: routine analyses used as the source for the duplicates :return: a list of duplicates generated from the analysis passed in """

        if not analysis:
            return list()
        uid = api.get_uid(analysis)
        return filter(lambda dup: api.get_uid(dup.getAnalysis()) == uid,
                      self.getDuplicateAnalyses())