code: func calculatePriority(sumScores int64) int {
  	if sumScores < minThreshold {
  		sumScores = minThreshold
  	} else if sumScores > maxThreshold {
  		sumScores = maxThreshold
  	}
  
  	return int(int64(schedulerapi.MaxPriority) * (sumScores - minThreshold) / (maxThreshold - minThreshold))
  }
docs: // calculatePriority returns the priority of a node. Given the sumScores of requested images on the node, the node's
  // priority is obtained by scaling the maximum priority value with a ratio proportional to the sumScores.