code: func authorizedForPolicyInAPIGroup(info user.Info, namespace, policyName, apiGroupName string, authz authorizer.Authorizer) bool {
  	if info == nil {
  		return false
  	}
  	attr := buildAttributes(info, namespace, policyName, apiGroupName)
  	decision, reason, err := authz.Authorize(attr)
  	if err != nil {
  		klog.V(5).Infof("cannot authorize for policy: %v,%v", reason, err)
  	}
  	return (decision == authorizer.DecisionAllow)
  }
docs: // authorizedForPolicyInAPIGroup returns true if info is authorized to perform the "use" verb on the policy resource in the specified API group.