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_CREATE,
                  permissions.RESOURCE_ROLE,
              ),
              (permissions.ACTION_CAN_READ, permissions.RESOURCE_ROLE),
              (permissions.ACTION_CAN_EDIT, permissions.RESOURCE_ROLE),
              (
                  permissions.ACTION_CAN_DELETE,
                  permissions.RESOURCE_ROLE,
              ),
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_ACTION,
              ),
              (
                  permissions.ACTION_CAN_CREATE,
                  permissions.RESOURCE_USER,
              ),
              (
                  permissions.ACTION_CAN_DELETE,
                  permissions.RESOURCE_USER,
              ),
              (permissions.ACTION_CAN_EDIT, permissions.RESOURCE_USER),
              (permissions.ACTION_CAN_READ, permissions.RESOURCE_USER),
          ],
      )
  
      yield app
  
      delete_user(app, username="test")
  
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.auth.managers.base_auth_manager import BaseAuthManager
  from airflow.providers.fab.auth_manager.models import Role, User
  from airflow.security import permissions
  from airflow.utils import timezone
  from airflow.utils.session import create_session
  from airflow.www.security import EXISTING_ROLES
  from tests.test_utils.api_connexion_utils import create_role, create_user, delete_role, delete_user
label_desc: Use image node_id 6 for calling a global function with example usage: configured_app(minimal_app_for_api) without return types