code: def main():
      stream = StringIO()
      with redirect_stdout(stream):
          logger.debug("Starting server")
          t = Thread(target=run_server)
          t.daemon = True
          t.start()
          logger.debug("Checking server")
  
          while not url_ok("127.0.0.1", 23948):
              sleep(1)
  
          logger.debug("Server started")
          window = webview.create_window(
              "Doc Versioning", "http://127.0.0.1:23948"
          )
          webview.start(debug=True)
  
file_path: doc-parsr/demo/doc-versioning/doc_versioning/src/backend/main.py
imports: import logging
  import webview
  from contextlib import redirect_stdout
  from io import StringIO
  from threading import Thread, Lock
  from time import sleep
  from .server import run_server
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types