code: def configured_app(minimal_app_for_api):
      app = minimal_app_for_api
  
      create_user(
          app,
          username="test",
          role_name="Test",
          permissions=[
              (permissions.ACTION_CAN_READ, permissions.RESOURCE_DAG),
              (
                  permissions.ACTION_CAN_READ,
                  permissions.RESOURCE_TASK_LOG,
              ),
          ],
      )
      create_user(
          app,
          username="test_no_permissions",
          role_name="TestNoPermissions",
      )
  
      yield app
  
      delete_user(app, username="test")
      delete_user(app, username="test_no_permissions")
  
imports: from __future__ import annotations
  import copy
  import logging.config
  import sys
  from unittest import mock
  from unittest.mock import PropertyMock
  import pytest
  from itsdangerous.url_safe import URLSafeSerializer
  from airflow.api_connexion.exceptions import EXCEPTIONS_LINK_MAP
  from airflow.config_templates.airflow_local_settings import DEFAULT_LOGGING_CONFIG
  from airflow.decorators import task
  from airflow.models.dag import DAG
  from airflow.operators.empty import EmptyOperator
  from airflow.security import permissions
  from airflow.utils import timezone
  from airflow.utils.types import DagRunType
  from tests.test_utils.api_connexion_utils import assert_401, create_user, delete_user
  from tests.test_utils.db import clear_db_runs
label_desc: Use image node_id 1 for calling a global function with example usage: configured_app(minimal_app_for_api) without return types