code: def get_run_heartbeat(run_hash, **kwargs):
      repo_path = os.environ.get(AIM_SERVER_MOUNTED_REPO_PATH)
      if repo_path:
          repo = Repo.from_path(repo_path)
      else:
          repo = Repo.default_repo()
      status_reporter = RunStatusReporter(
          run_hash, LocalFileManager(repo.path)
      )
      progress_flag_path = (
          pathlib.Path(repo.path) / "meta" / "progress" / run_hash
      )
      return ResourceRef(
          ScheduledStatusReporter(
              status_reporter, touch_path=progress_flag_path
          ),
          ScheduledStatusReporter.stop,
      )
  
imports: import os
  import uuid
  import pathlib
  import pytz
  from datetime import datetime
  from aim.ext.transport.config import AIM_SERVER_MOUNTED_REPO_PATH
  from aim.sdk import Repo
  from aim.sdk.reporter import RunStatusReporter, ScheduledStatusReporter
  from aim.sdk.reporter.file_manager import LocalFileManager
  from aim.ext.cleanup import AutoClean
label_desc: Use image node_id 6 for calling a global function with example usage: get_run_heartbeat(run_hash) and returns: ResourceRef