code: def get_metric_strings(args, tput, busbw, duration):
      duration_ms = duration * 1e3
      duration_us = duration * 1e6
      tput = f"{tput / 1e9:.3f}"
      busbw = f"{busbw /1e9:.3f}"
  
      if duration_us < 1e3 or args.raw:
          duration = f"{duration_us:.3f}"
          if not args.raw:
              duration += " us"
      else:
          duration = f"{duration_ms:.3f} ms"
      return tput, busbw, duration
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/benchmarks/communication/utils.py
imports: import torch
  import os
  import math
  import argparse
  from benchmarks.communication.constants import *
label_desc: Use image node_id 7 for calling a global function with example usage: get_metric_strings(args, tput, busbw, duration) and returns: tput,  busbw,  duration