code: def full_api_access(mocker: MockFixture) -> Iterator[None]:
      """
      Allow full access to the API.
  
      TODO (betodealmeida): we should replace this with user-fixtures, eg, ``admin`` or
      ``gamma``, so that we have granular access to the APIs.
      """
      mocker.patch(
          "flask_appbuilder.security.decorators.verify_jwt_in_request",
          return_value=True,
      )
      mocker.patch.object(
          security_manager, "has_access", return_value=True
      )
      mocker.patch.object(
          security_manager,
          "can_access_all_databases",
          return_value=True,
      )
  
      yield
  
imports: import functools
  import importlib
  import os
  import unittest.mock
  from collections.abc import Iterator
  from typing import Any, Callable
  from unittest.mock import patch
  import pytest
  from _pytest.fixtures import SubRequest
  from pytest_mock import MockFixture
  from sqlalchemy import create_engine
  from sqlalchemy.orm import sessionmaker
  from sqlalchemy.orm.session import Session
  from superset import security_manager
  from superset.app import SupersetApp
  from superset.common.chart_data import ChartDataResultType
  from superset.common.query_object_factory import QueryObjectFactory
  from superset.extensions import appbuilder, feature_flag_manager
  from superset.initialization import SupersetAppInitializer
label_desc: Use image node_id 6 for calling a global function with example usage: full_api_access(mocker) without return types