code: func convertLabels(newLabels []mesosAgent.KeyValue) map[string]string {
  	result := map[string]string{}
  	for _, l := range newLabels {
  		// Remove blacklisted cosmos labels
  		if _, inSlice := cosmosLabels[l.Key]; inSlice {
  			continue
  		}
  		result[l.Key] = l.Value
  	}
  
  	return result
  }
docs: // convertLabels converts each keyValue to an entry in a map