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_DAG),
              (permissions.ACTION_CAN_EDIT, permissions.RESOURCE_DAG),
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_DAG_RUN,
              ),
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_TASK_INSTANCE,
              ),
              (
                  permissions.ACTION_CAN_EDIT,
                  permissions.RESOURCE_TASK_INSTANCE,
              ),
          ],
      )
      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")  # type: ignore
      delete_roles(app)
  
imports: from __future__ import annotations
  import datetime
  import itertools
  import os
  import urllib
  import pytest
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.models import TaskInstance
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.dagbag import DagBag
  from airflow.models.taskmap import TaskMap
  from airflow.security import permissions
  from airflow.utils.platform import getuser
  from airflow.utils.session import provide_session
  from airflow.utils.state import State, TaskInstanceState
  from airflow.utils.timezone import datetime
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_roles, delete_user
  from tests.test_utils.db import clear_db_runs, clear_db_sla_miss, clear_rendered_ti_fields
  from tests.test_utils.mock_operators import MockOperator
label_desc: Use image node_id 1 for calling a global function with example usage: configured_app(minimal_app_for_api) without return types