code: def log_gpu_stats():
      """
      Log nvidia-smi snapshot. Useful to capture the configuration of gpus.
      """
      try:
          logging.info(
              subprocess.check_output(["nvidia-smi"]).decode("utf-8")
          )
      except FileNotFoundError:
          logging.error(
              "Failed to find the 'nvidia-smi' executable for printing GPU stats"
          )
      except subprocess.CalledProcessError as e:
          logging.error(
              f"nvidia-smi returned non zero error code: {e.returncode}"
          )
  
file_path: vissl/vissl/utils/logger.py
imports: import atexit
  import functools
  import logging
  import subprocess
  import sys
  from iopath.common.file_io import g_pathmgr
  from vissl.utils.io import makedir
label_desc: Use image node_id 4 for calling a global function with example usage: log_gpu_stats() without return types