docs: def fmt_duration(duration):
      """ Format a duration value in seconds to a readable form.
      """
      try:
          return fmt.human_duration(float(duration), 0, 2, True)
      except (ValueError, TypeError):
          return "N/A".rjust(len(fmt.human_duration(0, 0, 2, True)))