code: def _format_timesince(ts: float) -> str:
      """Format timestamp in seconds into a human-readable string, relative to now.
  
      Vaguely inspired by Django's `timesince` formatter.
      """
      delta = time.time() - ts
      if delta < 20:
          return "a few seconds ago"
      for label, divider, max_value in _TIMESINCE_CHUNKS:  # noqa: B007
          value = round(delta / divider)
          if max_value is not None and value <= max_value:
              break
      return f"{value} {label}{'s' if value > 1 else ''} ago"
  
imports: import os
  import shutil
  import time
  from collections import defaultdict
  from dataclasses import dataclass
  from pathlib import Path
  from typing import Dict, FrozenSet, List, Literal, Optional, Set, Union
  from ..constants import HF_HUB_CACHE
  from .None import logging
label_desc: Use image node_id 4 for calling a global function with example usage: _format_timesince(ts) and returns: value, str, label, unknown, str, str