code: func addNominatedPods(pod *v1.Pod, meta predicates.PredicateMetadata,
  	nodeInfo *schedulernodeinfo.NodeInfo, queue internalqueue.SchedulingQueue) (bool, predicates.PredicateMetadata,
  	*schedulernodeinfo.NodeInfo) {
  	if queue == nil || nodeInfo == nil || nodeInfo.Node() == nil {
  		// This may happen only in tests.
  		return false, meta, nodeInfo
  	}
  	nominatedPods := queue.NominatedPodsForNode(nodeInfo.Node().Name)
  	if nominatedPods == nil || len(nominatedPods) == 0 {
  		return false, meta, nodeInfo
  	}
  	var metaOut predicates.PredicateMetadata
  	if meta != nil {
  		metaOut = meta.ShallowCopy()
  	}
  	nodeInfoOut := nodeInfo.Clone()
  	for _, p := range nominatedPods {
  		if util.GetPodPriority(p) >= util.GetPodPriority(pod) && p.UID != pod.UID {
  			nodeInfoOut.AddPod(p)
  			if metaOut != nil {
  				metaOut.AddPod(p, nodeInfoOut)
  			}
  		}
  	}
  	return true, metaOut, nodeInfoOut
  }
docs: // addNominatedPods adds pods with equal or greater priority which are nominated
  // to run on the node given in nodeInfo to meta and nodeInfo. It returns 1) whether
  // any pod was found, 2) augmented meta data, 3) augmented nodeInfo.