code: def __init__(self):
      self.allocated_items = collections.defaultdict(
          dict
      )  # for memory summary, device type: event
      self.reserved_items = collections.defaultdict(
          dict
      )  # for memory summary, device type: event
      self.peak_allocation_values = collections.defaultdict(int)
      self.peak_reserved_values = collections.defaultdict(int)
      self.memory_events = collections.defaultdict(
          lambda: collections.defaultdict(list)
      )
      self.memory_curve = collections.defaultdict(
          lambda: collections.defaultdict(list)
      )
      self.paired_events = collections.defaultdict(list)
      self.size_ranges = {}
  
file_path: VisualDL/visualdl/component/profiler/parser/memory_parser.py
imports: import collections
  from .utils import traverse_tree
label_desc: Use image node_id 1 to create a new MemoryParser object  with example: obj = MemoryParser()