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_VARIABLE,
              ),
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_VARIABLE,
              ),
              (
                  permissions.ACTION_CAN_EDIT,
                  permissions.RESOURCE_VARIABLE,
              ),
              (
                  permissions.ACTION_CAN_DELETE,
                  permissions.RESOURCE_VARIABLE,
              ),
          ],
      )
      create_user(
          app,  # type: ignore
          username="test_read_only",
          role_name="TestReadOnly",
          permissions=[
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_VARIABLE,
              ),
          ],
      )
      create_user(
          app,  # type: ignore
          username="test_delete_only",
          role_name="TestDeleteOnly",
          permissions=[
              (
                  permissions.ACTION_CAN_DELETE,
                  permissions.RESOURCE_VARIABLE,
              ),
          ],
      )
      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_read_only")  # type: ignore
      delete_user(app, username="test_delete_only")  # type: ignore
      delete_user(app, username="test_no_permissions")
  
imports: from __future__ import annotations
  import urllib
  import pytest
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.models import Variable
  from airflow.security import permissions
  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.db import clear_db_variables
  from tests.test_utils.www import _check_last_log
label_desc: Use image node_id 1 for calling a global function with example usage: configured_app(minimal_app_for_api) without return types