code: def __init__(self, base_url=None, use_relative_links=False):
      self.base_url = base_url
      self.use_relative_links = use_relative_links
  
      self.root_path = "/"
      self.shutdown_path = "/shutdown"
      self.favicon_path = "/favicon.ico"
      self.favicon_res = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          "assets",
          "favicon.ico",
      )
  
      self.default_app = Flask(__name__)
      self.pool = {}
      self.config = {}
      if self.base_url is None:
          self.app_pattern = re.compile(r"/?(.+?)(/|$)")
      else:
          self.app_pattern = re.compile(
              r"/?(?:{0}/)?(.+?)(/|$)".format(self.base_url)
          )
  
imports: from IPython import display
  import re
  import requests
  import threading
  import os
  from .None import _udash
  from gevent.pywsgi import WSGIServer
  from flask import Flask
  import socket
  import random
  from string import Template
  import logging
label_desc: Use image node_id 1 to create a new DispatcherApp object  with example: obj = DispatcherApp(base_url, use_relative_links)