code: def initialize_web_ui_plugins():
      """Collect extension points for WEB UI."""
      global plugins
      global flask_blueprints
      global flask_appbuilder_views
      global flask_appbuilder_menu_links
  
      if (
          flask_blueprints is not None
          and flask_appbuilder_views is not None
          and flask_appbuilder_menu_links is not None
      ):
          return
  
      ensure_plugins_loaded()
  
      if plugins is None:
          raise AirflowPluginException("Can't load plugins.")
  
      log.debug("Initialize Web UI plugin")
  
      flask_blueprints = []
      flask_appbuilder_views = []
      flask_appbuilder_menu_links = []
  
      for plugin in plugins:
          flask_appbuilder_views.extend(plugin.appbuilder_views)
          flask_appbuilder_menu_links.extend(
              plugin.appbuilder_menu_items
          )
          flask_blueprints.extend(
              [
                  {"name": plugin.name, "blueprint": bp}
                  for bp in plugin.flask_blueprints
              ]
          )
  
          if (plugin.admin_views and not plugin.appbuilder_views) or (
              plugin.menu_links and not plugin.appbuilder_menu_items
          ):
              log.warning(
                  "Plugin '%s' may not be compatible with the current Airflow version. "
                  "Please contact the author of the plugin.",
                  plugin.name,
              )
  
imports: from __future__ import annotations
  import importlib
  import importlib.machinery
  import importlib.util
  import inspect
  import logging
  import os
  import sys
  import types
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Iterable
  from airflow import settings
  from airflow.utils.entry_points import entry_points_with_dist
  from airflow.utils.file import find_path_from_directory
  from airflow.utils.module_loading import import_string, qualname
label_desc: Use image node_id 8 for calling a global function with example usage: initialize_web_ui_plugins() without return types