code: def init_api_connexion(app: Flask) -> None:
      """Initialize Stable API."""
      base_path = "/api/v1"
      base_paths.append(base_path)
  
      with ROOT_APP_DIR.joinpath(
          "api_connexion", "openapi", "v1.yaml"
      ).open() as f:
          specification = safe_load(f)
      api_bp = FlaskApi(
          specification=specification,
          resolver=_LazyResolver(),
          base_path=base_path,
          options={
              "swagger_ui": conf.getboolean(
                  "webserver", "enable_swagger_ui", fallback=True
              ),
              "swagger_path": os.fspath(
                  ROOT_APP_DIR.joinpath(
                      "www", "static", "dist", "swagger-ui"
                  )
              ),
          },
          strict_validation=True,
          validate_responses=True,
          validator_map={"body": _CustomErrorRequestBodyValidator},
      ).blueprint
      api_bp.after_request(set_cors_headers_on_response)
  
      app.register_blueprint(api_bp)
      app.extensions["csrf"].exempt(api_bp)
  
imports: from __future__ import annotations
  import logging
  import os
  import warnings
  from functools import cached_property
  from pathlib import Path
  from typing import TYPE_CHECKING
  from connexion import FlaskApi, ProblemException, Resolver
  from connexion.decorators.validation import RequestBodyValidator
  from connexion.exceptions import BadRequestProblem
  from flask import request
  from airflow.api_connexion.exceptions import common_error_handler
  from airflow.configuration import conf
  from airflow.exceptions import RemovedInAirflow3Warning
  from airflow.security import permissions
  from airflow.utils.yaml import safe_load
  from airflow.www.extensions.init_auth_manager import get_auth_manager
label_desc: Use image node_id 7 for calling a global function with example usage: init_api_connexion(app) without return types