def decode_response(client_message, to_object=None):
parameters = dict(status=None, address=None, uuid=None, owner_uuid=None, serialization_version=None, server_hazelcast_version=None, client_unregistered_members=None)<EOL>parameters['<STR_LIT:status>'] = client_message.read_byte()<EOL>if not client_message.read_bool():<EOL><INDENT>parameters['<STR_LIT:address>'] = AddressCodec.decode(client_message, to_object)<EOL><DEDENT>if not client_message.read_bool():<EOL><INDENT>parameters['<STR_LIT>'] = client_message.read_str()<EOL><DEDENT>if not client_message.read_bool():<EOL><INDENT>parameters['<STR_LIT>'] = client_message.read_str()<EOL><DEDENT>parameters['<STR_LIT>'] = client_message.read_byte()<EOL>if client_message.is_complete():<EOL><INDENT>return parameters<EOL><DEDENT>parameters['<STR_LIT>'] = client_message.read_str()<EOL>if not client_message.read_bool():<EOL><INDENT>client_unregistered_members_size = client_message.read_int()<EOL>client_unregistered_members = []<EOL>for _ in range(<NUM_LIT:0>, client_unregistered_members_size):<EOL><INDENT>client_unregistered_members_item = MemberCodec.decode(client_message, to_object)<EOL>client_unregistered_members.append(client_unregistered_members_item)<EOL><DEDENT>parameters['<STR_LIT>'] = ImmutableLazyDataList(client_unregistered_members, to_object)<EOL><DEDENT>return parameters<EOL>
Decode response from client message