<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getPatches(self) : """get patches as a dictionary"""

        if not self.mustValidate :
            return self.getStore()

        res = {}
        res.update(self.patchStore)
        for k, v in self.subStores.items() :
            res[k] = v.getPatches()
        
        return res