code: def app_with_rate_limit_one(examples_dag_bag):
      @dont_initialize_flask_app_submodules(
          skip_all_except=[
              "init_api_connexion",
              "init_appbuilder",
              "init_appbuilder_links",
              "init_appbuilder_views",
              "init_flash_views",
              "init_jinja_globals",
              "init_plugins",
              "init_airflow_session_interface",
              "init_check_user_active",
          ]
      )
      def factory():
          with conf_vars(
              {
                  ("fab", "auth_rate_limited"): "True",
                  ("fab", "auth_rate_limit"): "1 per 20 second",
              }
          ):
              return create_app(testing=True)
  
      app = factory()
      app.config["WTF_CSRF_ENABLED"] = False
      return app
  
file_path: airflow/tests/www/views/test_views_rate_limit.py
imports: from __future__ import annotations
  import pytest
  from airflow.www.app import create_app
  from tests.test_utils.config import conf_vars
  from tests.test_utils.decorators import dont_initialize_flask_app_submodules
  from tests.test_utils.www import client_with_login
label_desc: Use image node_id 1 for calling a global function with example usage: app_with_rate_limit_one(examples_dag_bag) and returns: app, create_app