code: def test_flaskappbuilder_nomenu_views():
      from tests.plugins.test_plugin import v_nomenu_appbuilder_package
  
      class AirflowNoMenuViewsPlugin(AirflowPlugin):
          appbuilder_views = [v_nomenu_appbuilder_package]
  
      appbuilder_class_name = str(
          v_nomenu_appbuilder_package["view"].__class__.__name__
      )
  
      with mock_plugin_manager(plugins=[AirflowNoMenuViewsPlugin()]):
          appbuilder = application.create_app(testing=True).appbuilder
  
          plugin_views = [
              view
              for view in appbuilder.baseviews
              if view.blueprint.name == appbuilder_class_name
          ]
  
          assert len(plugin_views) == 1
  
imports: from __future__ import annotations
  import importlib
  import inspect
  import logging
  import os
  import sys
  from pathlib import Path
  from unittest import mock
  import pytest
  from airflow.hooks.base import BaseHook
  from airflow.listeners.listener import get_listener_manager
  from airflow.plugins_manager import AirflowPlugin
  from airflow.utils.module_loading import qualname
  from airflow.www import app
  from tests.test_utils.config import conf_vars
  from tests.test_utils.mock_plugins import mock_plugin_manager
label_desc: Use image node_id 2 for calling a global function with example usage: test_flaskappbuilder_nomenu_views() without return types