code: def bk_worker():
      asyncio.set_event_loop(asyncio.new_event_loop())
  
      bokeh_tornado = BokehTornado(
          {"/bkapp": bkapp}, extra_websocket_origins=["localhost:8000"]
      )
      bokeh_http = HTTPServer(bokeh_tornado)
      bokeh_http.add_sockets(sockets)
  
      server = BaseServer(IOLoop.current(), bokeh_tornado, bokeh_http)
      server.start()
      server.io_loop.start()
  
file_path: bokeh/examples/server/api/flask_gunicorn_embed.py
imports: import asyncio
  from threading import Thread
  from flask import Flask, render_template
  from tornado.httpserver import HTTPServer
  from tornado.ioloop import IOLoop
  from bokeh.application import Application
  from bokeh.application.handlers import FunctionHandler
  from bokeh.embed import server_document
  from bokeh.layouts import column
  from bokeh.models import ColumnDataSource, Slider
  from bokeh.plotting import figure
  from bokeh.sampledata.sea_surface_temperature import sea_surface_temperature
  from bokeh.server.server import BaseServer
  from bokeh.server.tornado import BokehTornado
  from bokeh.server.util import bind_sockets
  from bokeh.themes import Theme
label_desc: Use image node_id 3 for calling a global function with example usage: bk_worker() without return types