code: func IsCriticalPod(pod *v1.Pod) bool {
  	if utilfeature.DefaultFeatureGate.Enabled(features.PodPriority) {
  		if pod.Spec.Priority != nil && IsCriticalPodBasedOnPriority(*pod.Spec.Priority) {
  			return true
  		}
  	}
  	if utilfeature.DefaultFeatureGate.Enabled(features.ExperimentalCriticalPodAnnotation) {
  		if IsCritical(pod.Namespace, pod.Annotations) {
  			return true
  		}
  	}
  	return false
  }
docs: // IsCriticalPod returns true if the pod bears the critical pod annotation key or if pod's priority is greater than
  // or equal to SystemCriticalPriority. Both the default scheduler and the kubelet use this function
  // to make admission and scheduling decisions.