<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_versions(self, name: str) -> Set[str]: """Return all of the versions of a network with the given name."""

        return {
            version
            for version, in self.session.query(Network.version).filter(Network.name == name).all()
        }