code: def init_plugins(app):
      """Integrate Flask and FAB with plugins."""
      from airflow import plugins_manager
  
      plugins_manager.initialize_web_ui_plugins()
  
      appbuilder = app.appbuilder
  
      for view in plugins_manager.flask_appbuilder_views:
          name = view.get("name")
          if name:
              log.debug("Adding view %s with menu", name)
              appbuilder.add_view(
                  view["view"], name, category=view["category"]
              )
          else:
              # if 'name' key is missing, intent is to add view without menu
              log.debug(
                  "Adding view %s without menu", str(type(view["view"]))
              )
              appbuilder.add_view_no_menu(view["view"])
  
      for menu_link in sorted(
          plugins_manager.flask_appbuilder_menu_links,
          key=lambda x: (x.get("category", ""), x["name"]),
      ):
          log.debug(
              "Adding menu link %s to %s",
              menu_link["name"],
              menu_link["href"],
          )
          appbuilder.add_link(**menu_link)
  
      for blue_print in plugins_manager.flask_blueprints:
          log.debug(
              "Adding blueprint %s:%s",
              blue_print["name"],
              blue_print["blueprint"].import_name,
          )
          app.register_blueprint(blue_print["blueprint"])
  
imports: from __future__ import annotations
  import logging
  import os
  import warnings
  from functools import cached_property
  from pathlib import Path
  from typing import TYPE_CHECKING
  from connexion import FlaskApi, ProblemException, Resolver
  from connexion.decorators.validation import RequestBodyValidator
  from connexion.exceptions import BadRequestProblem
  from flask import request
  from airflow.api_connexion.exceptions import common_error_handler
  from airflow.configuration import conf
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.security import permissions
  from airflow.utils.yaml import safe_load
  from airflow.www.extensions.init_auth_manager import get_auth_manager
label_desc: Use image node_id 3 for calling a global function with example usage: init_plugins(app) without return types