code: def custom_openapi():
      if app.openapi_schema:
          return app.openapi_schema
      openapi_schema = get_openapi(
          title=cfg.PROJECT_NAME,
          version=cfg.VERSION,
          description=cfg.PROJECT_DESCRIPTION,
          routes=app.routes,
      )
      app.openapi_schema = openapi_schema
      return app.openapi_schema
  
imports: import time
  from fastapi import FastAPI, Request
  from fastapi.openapi.utils import get_openapi
  from app import config
  from app.routes import detection, kie, ocr, recognition
label_desc: Use image node_id 1 for calling a global function with example usage: custom_openapi() and returns: app, app