code: def create_api(app):
      from modules.api.api import Api
      from modules.call_queue import queue_lock
  
      api = Api(app, queue_lock)
      return api
  
file_path: stable-diffusion-webui/webui.py
imports: from __future__ import annotations
  import os
  import time
  from modules import timer
  from modules import initialize_util
  from modules import initialize
label_desc: Use image node_id 1 for calling a global function with example usage: create_api(app) and returns: api