code: def calculate_size(timeout, durability, transaction_type, thread_id):
      
      data_size = 0
      data_size += LONG_SIZE_IN_BYTES
      data_size += INT_SIZE_IN_BYTES
      data_size += INT_SIZE_IN_BYTES
      data_size += LONG_SIZE_IN_BYTES
      return data_size
docs: Calculates the request payload size