<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_most_recent_network_by_name(self, name: str) -> Optional[Network]: """Get the most recently created network with the given name."""

        return self.session.query(Network).filter(Network.name == name).order_by(Network.created.desc()).first()