code: def _write_csv(path: str, data_list: List[Dict[str, float]]) -> None:
      with fs_open(path, "w") as f:
          w = csv.DictWriter(f, data_list[0].keys())
          w.writeheader()
          w.writerows(data_list)
  
file_path: tnt/torchtnt/utils/loggers/csv.py
imports: import csv
  import logging
  from threading import Thread
  from typing import Dict, List, Optional
  from fsspec import open
  from torchtnt.utils.loggers.file import FileLogger
  from torchtnt.utils.loggers.logger import MetricLogger
label_desc: Use image node_id 1 for calling a global function with example usage: _write_csv(path, data_list) without return types