code: def fmtfloat(n, decimals=3, total=None):
      "Work around borken python float formatting"
      s = "%0.*f" % (decimals, n)
      if total:
          s = (" " * total + s)[-total:]
      return s
  
imports: import time
  import sys
  import weakref
label_desc: Use image node_id 1 for calling a global function with example usage: fmtfloat(n, decimals, total) and returns: s