#NEWLINE# def create_heartbeat( model , address , master_address ) : #NEWLINE# #INDENT# context = zmq . Context ( ) #NEWLINE# master_socket = context . socket ( zmq . PUSH ) #NEWLINE# master_socket . connect ( master_address ) #NEWLINE# return Heartbeat ( model , master_address , master_socket )