code: def _write_stats(
      writers: List[MetricLogger],
      stats: Dict[str, float],
      step: int,
  ) -> None:
      for writer in writers:
          writer.log_dict(stats, step)
  
file_path: tnt/torchtnt/framework/callbacks/system_resources_monitor.py
imports: from typing import Dict, List, Optional, Union
  import psutil
  import torch
  from torchtnt.framework.callback import Callback
  from torchtnt.framework.state import State
  from torchtnt.framework.unit import TEvalUnit, TPredictUnit, TTrainUnit
  from torchtnt.utils.device import collect_system_stats, get_device_from_env
  from torchtnt.utils.loggers.logger import MetricLogger
label_desc: Use image node_id 1 for calling a global function with example usage: _write_stats(writers, stats, step) without return types