code: def __init__(self, shared: bool = False, data: dict = None):
      if data is None:
          data = {}
  
      if shared:
          # NOTE(kamo): Don't set manager as a field because Manager, which includes
          # weakref object, causes following error with method="spawn",
          # "TypeError: can't pickle weakref objects"
          self.cache = multiprocessing.Manager().dict(**data)
      else:
          self.manager = None
          self.cache = dict(**data)
      self.size = 0
  
file_path: espnet/espnet2/utils/sized_dict.py
imports: import collections
  import sys
  from torch import multiprocessing
label_desc: Use image node_id 1 to create a new SizedDict object from inherited base classes: collections.abc with example: obj = SizedDict(shared, data)