code: def _format_time(seconds):
      
  
      # Always do minutes and seconds in mm:ss format
      minutes = seconds // 60
      hours = minutes // 60
      rtn = u'{0:02.0f}:{1:02.0f}'.format(minutes % 60, seconds % 60)
  
      #  Add hours if there are any
      if hours:
  
          rtn = u'{0:d}h {1}'.format(int(hours % 24), rtn)
  
          #  Add days if there are any
          days = int(hours // 24)
          if days:
              rtn = u'{0:d}d {1}'.format(days, rtn)
  
      return rtn
docs: Args:
          seconds (float): amount of time
  
      Format time string for eta and elapsed