def __init__(self, port, module_dict):
        """
        Args:
            port: the port connected to the pub socket
            module_dict: ModuleDict object that exposes model parameters
        """
        self._publisher = ZmqPub(
            host='*',
            port=port,
            serializer=U.serialize,
        )
        if not isinstance(module_dict, ModuleDict):
            module_dict = ModuleDict(module_dict)
        self._module_dict = module_dict

        Args:
            port: the port connected to the pub socket
            module_dict: ModuleDict object that exposes model parameters
        
surreal/distributed/parameter_server.py