code: def run(wait=True, **kwargs):
      if wait:
          run_server(**kwargs)
      else:
          Thread(target=run_server, kwargs=kwargs, daemon=True).start()
  
imports: import contextlib
  import logging
  import os
  import sys
  import ast
  import json
  from threading import Thread
  import time
  from traceback import print_exception
  from typing import List
  from pydantic import BaseModel, Field
  import uvicorn
  from fastapi import Depends, FastAPI, Header, HTTPException
  from fastapi.middleware.cors import CORSMiddleware
  from fastapi.requests import Request
  from fastapi.responses import JSONResponse
  from sse_starlette import EventSourceResponse
  from starlette.responses import PlainTextResponse
  from openai_server.log import logger
label_desc: Use image node_id 3 for calling a global function with example usage: run(wait) without return types