code: def calculate_size(name, registration_id):
      
      data_size = 0
      data_size += calculate_size_str(name)
      data_size += calculate_size_str(registration_id)
      return data_size
docs: Calculates the request payload size