class_docstr: Read records from queue and dispatch to handler routines.
code: def _setup(self) -> None:
      self._hm = handler.HandleManager(
          settings=self._settings,
          record_q=self._record_q,
          result_q=self._result_q,
          stopped=self._stopped,
          writer_q=self._writer_q,
          interface=self._interface,
          context_keeper=self._context_keeper,
      )
  
imports: import atexit
  import logging
  import os
  import queue
  import sys
  import threading
  import time
  import traceback
  from datetime import datetime
  from typing import TYPE_CHECKING, Any, List, Optional
  import psutil
  import wandb
  from ..interface.interface_queue import InterfaceQueue
  from ..lib import tracelog
  from .None import context, handler, internal_util, sender, writer
label_desc: Use image node_id 2 for calling the HandlerThread obj's underlying member method code with example usage: obj._setup() without return types