<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_network_by_id(self, net_id):
 """Return a network with that id or None."""


        for elem in self.networks:
            if elem.id == net_id:
                return elem
        return None