code: def has_access_view(
      access_view: AccessView = AccessView.WEBSITE,
  ) -> Callable[[T], T]:
      """Decorator that checks current user's permissions to access the website."""
      return _has_access_no_details(
          lambda: get_auth_manager().is_authorized_view(
              access_view=access_view
          )
      )
  
imports: from __future__ import annotations
  import functools
  import logging
  import warnings
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, Sequence, TypeVar, cast
  from flask import flash, redirect, render_template, request, url_for
  from flask_appbuilder._compat import as_unicode
  from flask_appbuilder.const import FLAMSG_ERR_SEC_ACCESS_DENIED, LOGMSG_ERR_SEC_ACCESS_DENIED, PERMISSION_PREFIX
  from airflow.auth.managers.models.resource_details import AccessView, ConnectionDetails, DagAccessEntity, DagDetails, PoolDetails, VariableDetails
  from airflow.configuration import conf
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.utils.net import get_hostname
  from airflow.www.extensions.init_auth_manager import get_auth_manager
label_desc: Use image node_id 13 for calling a global function with example usage: has_access_view(access_view) and returns: _has_access_no_details