def decode_response(client_message, to_object=None):
parameters = dict(response=None)<EOL>response_size = client_message.read_int()<EOL>response = []<EOL>for _ in range(<NUM_LIT:0>, response_size):<EOL><INDENT>response_item = (client_message.read_data(), client_message.read_data())<EOL>response.append(response_item)<EOL><DEDENT>parameters['<STR_LIT>'] = ImmutableLazyDataList(response, to_object)<EOL>return parameters<EOL>
Decode response from client message