code: def __init__(self, tensorboard_mod, key, data):
      self._tb_mod = tensorboard_mod
      self._key = key
      self._data = data
      self.log_dir = None
      self._monitor = None
      self._app = None
      self._started = False
  
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 1 to create a new TBServer object  with example: obj = TBServer(tensorboard_mod, key, data)