code: def format_time(time_us=None, time_ms=None, time_s=None):
      """Define time formatting."""
      assert (
          sum(
              [
                  time_us is not None,
                  time_ms is not None,
                  time_s is not None,
              ]
          )
          == 1
      )
  
      US_IN_SECOND = 1e6
      US_IN_MS = 1e3
  
      if time_us is None:
          if time_ms is not None:
              time_us = time_ms * US_IN_MS
          elif time_s is not None:
              time_us = time_s * US_IN_SECOND
          else:
              raise AssertionError("Shouldn't reach here :)")
  
      if time_us >= US_IN_SECOND:
          return f"{time_us / US_IN_SECOND:.3f}s"
      if time_us >= US_IN_MS:
          return f"{time_us / US_IN_MS:.3f}ms"
      return f"{time_us:.3f}us"
  
file_path: pytorch/torch/utils/throughput_benchmark.py
imports: import torch._C
label_desc: Use image node_id 1 for calling a global function with example usage: format_time(time_us, time_ms, time_s) and returns: time_us, str, unknown, str, unknown, str