<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_deploy_by_id(self, dep_id):
 """Return a deploy with that system id or None."""


        for elem in self.deploys:
            if elem.id == dep_id:
                return elem
        return None