def METHOD_NAME(user, verb, group, version, resource, namespace=None,
                  subresource=None):
    """
    Create a SubjectAccessReview to the K8s API to determine if the user is
    authorized to perform a specific verb on a resource.
    """
    # Skip authz check if in dev mode
    if config.dev_mode_enabled():
        log.debug("Skipping authorization check in development mode")
        return True
    # Skip authz check if admin explicitly requested it
    if settings.DISABLE_AUTH:
        log.info("APP_DISABLE_AUTH set to True. Skipping authorization check")
        return True
    if user is None:
        log.warning("No user credentials were found! Make sure you have"
                    " correctly set the USERID_HEADER in the Web App's"
                    " deployment.")
        raise Unauthorized(description="No user credentials were found!")
    sar = create_subject_access_review(user, verb, namespace, group, version,
                                       resource, subresource)
    try:
        obj = authz_api.create_subject_access_review(sar)
    except ApiException as e:
        log.error("Error submitting SubjecAccessReview: %s, %s", sar, e)
        raise e
    if obj.status is not None:
        return obj.status.allowed
    else:
        log.error("SubjectAccessReview doesn't have status.")
        return False