code: def __init__(
      self,
      upload_function: Callable[[List[PathUploadInfo]], None],
      work_queue_max_size: int = 50,
  ) -> None:
      self._upload_function = upload_function
  
      self._work_queue: queue.Queue = queue.Queue(
          maxsize=work_queue_max_size
      )
  
      super().__init__(daemon=True, name="TensorboardUploadThread")
  
imports: import abc
  import logging
  import pathlib
  import queue
  import threading
  import time
  from dataclasses import dataclass
  from typing import Any, Callable, List
  from determined import tensorboard
  from determined.common import util
label_desc: Use image node_id 1 to create a new _TensorboardUploadThread object from inherited base classes: threading with example: obj = _TensorboardUploadThread(upload_function, work_queue_max_size)