<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def saveVirtualOutputs(self,outdict):
 """ Assign in-memory versions of generated products for this ``imageObject`` based on dictionary 'outdict'. """

        if not self.inmemory:
            return
        for outname in outdict:
            self.virtualOutputs[outname] = outdict[outname]