def calculate_size(name, value_list):
data_size = <NUM_LIT:0><EOL>data_size += calculate_size_str(name)<EOL>data_size += INT_SIZE_IN_BYTES<EOL>for value_list_item in value_list:<EOL><INDENT>data_size += calculate_size_data(value_list_item)<EOL><DEDENT>return data_size<EOL>
Calculates the request payload size