code: def run(self) -> None:
      while not self._should_quit:
          try:
              self._post_heartbeat()
          except Exception:
              logger.warning(
                  "failure communicating with heartbeat API (retrying in 10s):",
                  exc_info=True,
              )
              time.sleep(10)
          else:
              time.sleep(60)
  
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 3 for calling the _HeartbeatReporter obj's underlying member method code with example usage: obj.run() without return types