code: def format_time(s: float) -> str:
      """Return a nice string representation of `s` seconds."""
      m = int(s / 60)
      s -= m * 60
      h = int(m / 60)
      m -= h * 60
      s = int(s * 1000) / 1000.0
      return (
          ("" if h == 0 else str(h) + "h")
          + ("" if m == 0 else str(m) + "m")
          + (str(s) + "s")
      )
  
file_path: H2O/h2o_hf/helm/src/helm/common/hierarchical_logger.py
imports: import sys
  import time
  from typing import Any, Callable, List, Optional
label_desc: Use image node_id 1 for calling a global function with example usage: format_time(s) and returns: unknown