code: def format_time(t):
      """Format seconds into a human readable form.
  
      >>> format_time(10.4)
      '10.4s'
      >>> format_time(1000.4)
      '16min 40.4s'
      >>> format_time(100000.4)
      '27hr 46min 40.4s'
      """
      m, s = divmod(t, 60)
      h, m = divmod(m, 60)
      if h:
          return f"{h:2.0f}hr {m:2.0f}min {s:4.1f}s"
      elif m:
          return f"{m:2.0f}min {s:4.1f}s"
      else:
          return f"{s:4.1f}s"
  
imports: from __future__ import annotations
  import asyncio
  import logging
  import warnings
  from collections import defaultdict
  from timeit import default_timer
  from typing import ClassVar
  from tlz import groupby, valmap
  from dask.base import tokenize
  from dask.utils import key_split
  from distributed.diagnostics.plugin import SchedulerPlugin
  from distributed.metrics import time
label_desc: Use image node_id 2 for calling a global function with example usage: format_time(t) and returns: h, str, m, str, s, str, m, str, s, str, s, str