code: def setup(server):
      base_url = server.web_app.settings["base_url"]
      url_pattern = base_url.rstrip("/") + "/nni/(.*)"
      server.web_app.add_handlers(
          ".*$", [(url_pattern, NniProxyHandler)]
      )
  
file_path: nni/nni/tools/jupyter_extension/proxy.py
imports: import json
  from pathlib import Path
  import requests
  from tornado.web import RequestHandler
label_desc: Use image node_id 1 for calling a global function with example usage: setup(server) without return types