code: func NormalizeReduce(maxPriority int, reverse bool) PriorityReduceFunction {
  	return func(
  		_ *v1.Pod,
  		_ interface{},
  		_ map[string]*schedulernodeinfo.NodeInfo,
  		result schedulerapi.HostPriorityList) error {
  
  		var maxCount int
  		for i := range result {
  			if result[i].Score > maxCount {
  				maxCount = result[i].Score
  			}
  		}
  
  		if maxCount == 0 {
  			if reverse {
  				for i := range result {
  					result[i].Score = maxPriority
  				}
  			}
  			return nil
  		}
  
  		for i := range result {
  			score := result[i].Score
  
  			score = maxPriority * score / maxCount
  			if reverse {
  				score = maxPriority - score
  			}
  
  			result[i].Score = score
  		}
  		return nil
  	}
  }
docs: // NormalizeReduce generates a PriorityReduceFunction that can normalize the result
  // scores to [0, maxPriority]. If reverse is set to true, it reverses the scores by
  // subtracting it from maxPriority.