code: def __init__(self):
      self.entries = {}
      self.data = {}
  
imports: import os
  import time
  import torch
  import traceback
  from contextlib import contextmanager
  import jiant.utils.python.io
  import jiant.utils.python.filesystem
label_desc: Use image node_id 1 to create a new InMemoryZLogger object from inherited base classes: BaseZLogger with example: obj = InMemoryZLogger()