code: func NewInterPodAffinityPriority(
  	info predicates.NodeInfo,
  	nodeLister algorithm.NodeLister,
  	podLister algorithm.PodLister,
  	hardPodAffinityWeight int32) PriorityFunction {
  	interPodAffinity := &InterPodAffinity{
  		info:                  info,
  		nodeLister:            nodeLister,
  		podLister:             podLister,
  		hardPodAffinityWeight: hardPodAffinityWeight,
  	}
  	return interPodAffinity.CalculateInterPodAffinityPriority
  }
docs: // NewInterPodAffinityPriority creates an InterPodAffinity.