code: def secs2time(secs):
      "secs to time, secs rounded to 3 decimals"
      msec = int(abs(secs - int(secs)) * 1000)
      return f"{datetime.timedelta(seconds=int(secs))}.{msec:03d}"
  
imports: from IPython import get_ipython
  from collections import namedtuple
  import datetime
  import gc
  import logging
  import os
  import psutil
  import random
  import sys
  import threading
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: secs2time(secs) and returns: datetime, str, msec