code: func targetPodMatchesAntiAffinityOfPod(pod, targetPod *v1.Pod) bool {
  	affinity := pod.Spec.Affinity
  	if affinity == nil || affinity.PodAntiAffinity == nil {
  		return false
  	}
  	properties, err := getAffinityTermProperties(pod, GetPodAntiAffinityTerms(affinity.PodAntiAffinity))
  	if err != nil {
  		klog.Errorf("error in getting anti-affinity properties of Pod %v", pod.Name)
  		return false
  	}
  	return podMatchesAnyAffinityTermProperties(targetPod, properties)
  }
docs: // targetPodMatchesAntiAffinityOfPod returns true if "targetPod" matches ANY anti-affinity
  // term of "pod". This function does not check topology.
  // So, whether the targetPod actually matches or not needs further checks for a specific
  // node.