<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_mem(self, id):
 """Fetch the memory with the supplied id"""

        for m in self.mems:
            if m.id == id:
                return m

        return None