code: def app_started_callback(demo: Optional[Blocks], app: FastAPI):
      for c in callback_map["callbacks_app_started"]:
          try:
              c.callback(demo, app)
              timer.startup_timer.record(os.path.basename(c.script))
          except Exception:
              report_exception(c, "app_started_callback")
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 3 for calling a global function with example usage: app_started_callback(demo, app) without return types