code: def make_app():
      manager = PerspectiveManager()
  
      thread = threading.Thread(
          target=perspective_thread, args=(manager,)
      )
      thread.daemon = True
      thread.start()
  
      return tornado.web.Application(
          [
              # create a websocket endpoint that the client Javascript can access
              (
                  r"/websocket",
                  PerspectiveTornadoHandler,
                  {"manager": manager, "check_origin": True},
              ),
              (
                  r"/node_modules/(.*)",
                  tornado.web.StaticFileHandler,
                  {"path": "../../node_modules/"},
              ),
              (
                  r"/(.*)",
                  tornado.web.StaticFileHandler,
                  {"path": "./", "default_filename": "index.html"},
              ),
          ]
      )
  
file_path: perspective/examples/python-tornado-streaming/server.py
imports: import random
  import logging
  import threading
  import tornado.websocket
  import tornado.web
  import tornado.ioloop
  from datetime import date, datetime
  from perspective import Table, PerspectiveManager, PerspectiveTornadoHandler
  import threading
  import concurrent.futures
label_desc: Use image node_id 3 for calling a global function with example usage: make_app() and returns: tornado