code: def _view_app(data, tb_servers):
      dist_files = DistFiles()
      run_files = RunFiles()
      run_output = RunOutput()
      routes = serving_util.Map(
          [
              ("/runs", _handle_runs, (data,)),
              ("/compare", _handle_compare, (data,)),
              ("/files/<path:_>", run_files.handle, ()),
              ("/runs/<run>/output", run_output.handle, ()),
              ("/config", _handle_config, (data,)),
              ("/tb/", _route_tb, ()),
              ("/tb/<key>/", _handle_tb_index, (tb_servers, data)),
              ("/tb/<key>/<path:_>", _handle_tb, (tb_servers,)),
              ("/", dist_files.handle_index, ()),
              ("/<path:_>", dist_files.handle, ()),
          ]
      )
      return serving_util.App(routes)
  
imports: import json
  import logging
  import math
  import os
  import socket
  import subprocess
  import sys
  import threading
  import time
  from werkzeug.exceptions import NotFound
  from werkzeug.utils import redirect
  from guild import serving_util
  from guild import util
  from guild import var
label_desc: Use image node_id 5 for calling a global function with example usage: _view_app(data, tb_servers) and returns: serving_util