code: def tensorboard_proj(key):
      if get_allow_tensorboard():
          experiments = [
              get_db().get_experiment(e)
              for e in get_db().get_project_experiments(key)
          ]
  
          logdir = ",".join(
              [
                  e.key + ":" + get_db().get_artifact(e.artifacts["tb"])
                  for e in experiments
              ]
          )
  
          return tensorboard(logdir)
      else:
          return render_template(
              "error.html",
              errormsg="TensorBoard is not allowed in hosted mode yet",
          )
  
imports: import time
  import sys
  from flask import Flask, render_template, request, redirect, abort
  from studio import model
  import argparse
  import yaml
  import json
  import socket
  import subprocess
  import traceback
  import six
  import os
  import requests
  from requests.exceptions import ChunkedEncodingError
  from .experiment import experiment_from_dict
  from .auth import get_and_verify_user, get_auth
  from .util import parse_verbosity
  from studio.util import logs
label_desc: Use image node_id 9 for calling a global function with example usage: tensorboard_proj(key) and returns: tensorboard, render_template