code: def get_network_by_id(self, net_id):
          
  
          for elem in self.networks:
              if elem.id == net_id:
                  return elem
          return None
docs: Return a network with that id or None.