code: def format_time(time):
      
      hours, remainder = divmod(time / 1000, 3600)
      minutes, seconds = divmod(remainder, 60)
  
      return '%02d:%02d:%02d' % (hours, minutes, seconds)
docs: Formats the given time into HH:MM:SS.