code: def __init__(self, session: api.Session, trial_id: int) -> None:
      self._session = session
      self._trial_id = trial_id
      self._should_quit = False
  
      super().__init__(daemon=True, name="HeartbeatReporterThread")
  
imports: import atexit
  import logging
  import sys
  import threading
  import time
  import types
  from typing import Any, Optional, Union
  from determined.common import api
  from determined.common.api import bindings
label_desc: Use image node_id 1 to create a new _HeartbeatReporter object from inherited base classes: threading with example: obj = _HeartbeatReporter(session, trial_id)