code: def bk_worker():
      # Can't pass num_procs > 1 in this configuration. If you need to run multiple
      # processes, see e.g. flask_gunicorn_embed.py
      server = Server(
          {"/bkapp": bkapp},
          io_loop=IOLoop(),
          allow_websocket_origin=["localhost:8000"],
      )
      server.start()
      server.io_loop.start()
  
file_path: bokeh/examples/server/api/flask_embed.py
imports: from threading import Thread
  from flask import Flask, render_template
  from tornado.ioloop import IOLoop
  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 Server
  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