code: func podEligibleToPreemptOthers(pod *v1.Pod, nodeNameToInfo map[string]*schedulernodeinfo.NodeInfo) bool {
  	nomNodeName := pod.Status.NominatedNodeName
  	if len(nomNodeName) > 0 {
  		if nodeInfo, found := nodeNameToInfo[nomNodeName]; found {
  			podPriority := util.GetPodPriority(pod)
  			for _, p := range nodeInfo.Pods() {
  				if p.DeletionTimestamp != nil && util.GetPodPriority(p) < podPriority {
  					// There is a terminating pod on the nominated node.
  					return false
  				}
  			}
  		}
  	}
  	return true
  }
docs: // podEligibleToPreemptOthers determines whether this pod should be considered
  // for preempting other pods or not. If this pod has already preempted other
  // pods and those are in their graceful termination period, it shouldn't be
  // considered for preemption.
  // We look at the node that is nominated for this pod and as long as there are
  // terminating pods on the node, we don't consider this for preempting more pods.