code: def calculate_size(name, value_list):
      
      data_size = 0
      data_size += calculate_size_str(name)
      data_size += INT_SIZE_IN_BYTES
      for value_list_item in value_list:
          data_size += calculate_size_data(value_list_item)
      return data_size
docs: Calculates the request payload size