#NEWLINE# def create_frontend_worker( master_address ) : #NEWLINE# #INDENT# context = zmq . Context ( ) #NEWLINE# master_socket = context . socket ( zmq . REQ ) #NEWLINE# master_socket . connect ( master_address ) #NEWLINE# worker_socket = context . socket ( zmq . REQ ) #NEWLINE# decoder = Decoder ( ) #NEWLINE# id_generator = ( lambda : uuid . uuid4 ( ) . int ) #NEWLINE# return FrontendWorker ( master_socket , worker_socket , decoder , id_generator )