code: func ImageLocalityPriorityMap(pod *v1.Pod, meta interface{}, nodeInfo *schedulernodeinfo.NodeInfo) (schedulerapi.HostPriority, error) {
  	node := nodeInfo.Node()
  	if node == nil {
  		return schedulerapi.HostPriority{}, fmt.Errorf("node not found")
  	}
  
  	var score int
  	if priorityMeta, ok := meta.(*priorityMetadata); ok {
  		score = calculatePriority(sumImageScores(nodeInfo, pod.Spec.Containers, priorityMeta.totalNumNodes))
  	} else {
  		// if we are not able to parse priority meta data, skip this priority
  		score = 0
  	}
  
  	return schedulerapi.HostPriority{
  		Host:  node.Name,
  		Score: score,
  	}, nil
  }
docs: // ImageLocalityPriorityMap is a priority function that favors nodes that already have requested pod container's images.
  // It will detect whether the requested images are present on a node, and then calculate a score ranging from 0 to 10
  // based on the total size of those images.
  // - If none of the images are present, this node will be given the lowest priority.
  // - If some of the images are present on a node, the larger their sizes' sum, the higher the node's priority.