code: def configured_app(minimal_app_for_api):
      app = minimal_app_for_api
      create_user(
          app,  # type: ignore
          username="test",
          role_name="Test",
          permissions=[
              (permissions.ACTION_CAN_READ, permissions.RESOURCE_PLUGIN)
          ],
      )
      create_user(app, username="test_no_permissions", role_name="TestNoPermissions")  # type: ignore
  
      yield app
  
      delete_user(app, username="test")  # type: ignore
      delete_user(app, username="test_no_permissions")
  
imports: from __future__ import annotations
  import inspect
  import pytest
  from flask import Blueprint
  from flask_appbuilder import BaseView
  from airflow.hooks.base import BaseHook
  from airflow.models.baseoperatorlink import BaseOperatorLink
  from airflow.plugins_manager import AirflowPlugin
  from airflow.security import permissions
  from airflow.ti_deps.deps.base_ti_dep import BaseTIDep
  from airflow.timetables.base import Timetable
  from airflow.utils.module_loading import qualname
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_user
  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: configured_app(minimal_app_for_api) without return types