docstr: Returns system and GPU device statistics
docstr_tok: ["Returns","system","and","GPU","device","statistics"]
code: def to_dict(self):
      """
      Returns system and GPU device statistics
      """
      return {
          "system": self.system,
          "gpus": self.gpus,
      }
  
file_path: aim/aim/ext/resource/stat.py
imports: import psutil
  import json
  from typing import List
  from aim.ext.resource.utils import round10e5
  import aim.ext.pynvml
label_desc: Use image node_id 5 for calling the StatDict obj's underlying member method code with example usage: obj.to_dict() and returns: dict