code: def auth_manager_with_appbuilder(flask_app):
      appbuilder = init_appbuilder(flask_app)
      return FabAuthManager(appbuilder)
  
imports: from __future__ import annotations
  from itertools import chain
  from unittest import mock
  from unittest.mock import Mock
  import pytest
  from flask import Flask
  from airflow.auth.managers.models.resource_details import AccessView, DagAccessEntity, DagDetails
  from airflow.exceptions import AirflowException
  from airflow.providers.fab.auth_manager.fab_auth_manager import FabAuthManager
  from airflow.providers.fab.auth_manager.models import User
  from airflow.providers.fab.auth_manager.security_manager.override import FabAirflowSecurityManagerOverride
  from airflow.security.permissions import ACTION_CAN_ACCESS_MENU, ACTION_CAN_CREATE, ACTION_CAN_DELETE, ACTION_CAN_EDIT, ACTION_CAN_READ, RESOURCE_CONFIG, RESOURCE_CONNECTION, RESOURCE_DAG, RESOURCE_DAG_RUN, RESOURCE_DATASET, RESOURCE_JOB, RESOURCE_PLUGIN, RESOURCE_PROVIDER, RESOURCE_TASK_INSTANCE, RESOURCE_TRIGGER, RESOURCE_VARIABLE, RESOURCE_WEBSITE
  from airflow.www.extensions.init_appbuilder import init_appbuilder
label_desc: Use image node_id 3 for calling a global function with example usage: auth_manager_with_appbuilder(flask_app) and returns: FabAuthManager