<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def freeze(self, dest_dir):
 """Freezes every resource within a context"""

        for resource in self.resources():
            if resource.present:
                resource.freeze(dest_dir)