code: func podMatchesScopeFunc(selector corev1.ScopedResourceSelectorRequirement, object runtime.Object) (bool, error) {
  	pod, err := toExternalPodOrError(object)
  	if err != nil {
  		return false, err
  	}
  	switch selector.ScopeName {
  	case corev1.ResourceQuotaScopeTerminating:
  		return isTerminating(pod), nil
  	case corev1.ResourceQuotaScopeNotTerminating:
  		return !isTerminating(pod), nil
  	case corev1.ResourceQuotaScopeBestEffort:
  		return isBestEffort(pod), nil
  	case corev1.ResourceQuotaScopeNotBestEffort:
  		return !isBestEffort(pod), nil
  	case corev1.ResourceQuotaScopePriorityClass:
  		return podMatchesSelector(pod, selector)
  	}
  	return false, nil
  }
docs: // podMatchesScopeFunc is a function that knows how to evaluate if a pod matches a scope