code: def dump_debug(self):
      print(self, "recorded data:")
      for k, v in self.read().items():
          print(k, -(v // -(1024**2)))
  
      print(self, "raw torch memory stats:")
      tm = torch.cuda.memory_stats(self.device)
      for k, v in tm.items():
          if "bytes" not in k:
              continue
          print("\t" if "peak" in k else "", k, -(v // -(1024**2)))
  
      print(torch.cuda.memory_summary())
  
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 4 for calling the MemUsageMonitor obj's underlying member method code with example usage: obj.dump_debug() without return types