code: def read(self):
      if not self.disabled:
          free, total = self.cuda_mem_get_info()
          self.data["free"] = free
          self.data["total"] = total
  
          torch_stats = torch.cuda.memory_stats(self.device)
          self.data["active"] = torch_stats["active.all.current"]
          self.data["active_peak"] = torch_stats[
              "active_bytes.all.peak"
          ]
          self.data["reserved"] = torch_stats[
              "reserved_bytes.all.current"
          ]
          self.data["reserved_peak"] = torch_stats[
              "reserved_bytes.all.peak"
          ]
          self.data["system_peak"] = total - self.data["min_free"]
  
      return self.data
  
file_path: stable-diffusion-webui/modules/memmon.py
imports: import threading
  import time
  from collections import defaultdict
  import torch
label_desc: Use image node_id 6 for calling the MemUsageMonitor obj's underlying member method code with example usage: obj.read() and returns: self