def calculate_size(timeout, durability, transaction_type, thread_id):
data_size = <NUM_LIT:0><EOL>data_size += LONG_SIZE_IN_BYTES<EOL>data_size += INT_SIZE_IN_BYTES<EOL>data_size += INT_SIZE_IN_BYTES<EOL>data_size += LONG_SIZE_IN_BYTES<EOL>return data_size<EOL>
Calculates the request payload size