code: def format_build_time(input_time):
      build_time = abs(input_time)
      build_time_str = str(build_time) + " ms"
      if build_time > 120000:  # 2 minutes
          minutes = int(build_time / 60000)
          seconds = int(((build_time / 60000) - minutes) * 60)
          build_time_str = "{:d}:{:02d} min".format(minutes, seconds)
      elif build_time > 1000:
          build_time_str = "{:.3f} s".format(build_time / 1000)
      if input_time < 0:
          build_time_str = "-" + build_time_str
      return build_time_str
  
file_path: cudf/cpp/scripts/sort_ninja_log.py
imports: import argparse
  import os
  import sys
  import xml.etree.ElementTree
  from pathlib import Path
  from xml.dom import minidom
label_desc: Use image node_id 5 for calling a global function with example usage: format_build_time(input_time) and returns: build_time_str