code: def log(self, line: str = "") -> None:
      empty = not line
  
      # add the system load prefix: "load avg: 1.80 "
      load_avg = self.get_load_avg()
      if load_avg is not None:
          line = f"load avg: {load_avg:.2f} {line}"
  
      # add the timestamp prefix:  "0:01:05 "
      log_time = time.perf_counter() - self.start_time
  
      mins, secs = divmod(int(log_time), 60)
      hours, mins = divmod(mins, 60)
      formatted_log_time = "%d:%02d:%02d" % (hours, mins, secs)
  
      line = f"{formatted_log_time} {line}"
      if empty:
          line = line[:-1]
  
      print(line, flush=True)
  
file_path: cpython/Lib/test/libregrtest/logger.py
imports: import os
  import time
  from test.support import MS_WINDOWS
  from .results import TestResults
  from .runtests import RunTests
  from .utils import print_warning
label_desc: Use image node_id 2 for calling the Logger obj's underlying member method code with example usage: obj.log(line) without return types