<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, network_id: int) -> Network: """Get a network from the database by its identifier."""

        return self.session.query(Network).get(network_id)