code: def __init__(self, host, port, view_port):
      super().__init__()
      self.host = host or socket.gethostname()
      self.port = port
      self.view_port = view_port
      self._view_base_url = util.local_server_url(host, view_port)
      self._ready = 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 DevServer object from inherited base classes: threading with example: obj = DevServer(host, port, view_port)