code: def secs_to_timestr(duration):
      dur = int(round(duration))
      hours = dur // (60 * 60)
      rest = dur % (60 * 60)
      minutes = rest // 60
      rest %= 60
      seconds = rest
      minutes = ("%02d:" if hours > 0 else "%d:") % minutes
      hours = "%d:" % (hours,) if hours > 0 else ""
      seconds = "%02d" % seconds
      return hours + minutes + seconds
  
label_desc: Use image node_id 1 for calling a global function with example usage: secs_to_timestr(duration) and returns: unknown