def handle(client_message, handle_event_map_partition_lost=None, to_object=None):
message_type = client_message.get_message_type()<EOL>if message_type == EVENT_MAPPARTITIONLOST and handle_event_map_partition_lost is not None:<EOL><INDENT>partition_id = client_message.read_int()<EOL>uuid = client_message.read_str()<EOL>handle_event_map_partition_lost(partition_id=partition_id, uuid=uuid)<EOL><DEDENT>
Event handler