class_docstr: The user-facing class that provides metric storage functionalities.
  
  In the future we may add support for storing / logging other types of data if needed.
code: def __exit__(self, exc_type, exc_val, exc_tb):
      assert _CURRENT_STORAGE_STACK[-1] == self
      _CURRENT_STORAGE_STACK.pop()
  
imports: import datetime
  import json
  import logging
  import os
  import time
  from collections import defaultdict
  from contextlib import contextmanager
  from functools import cached_property
  from typing import Optional
  import torch
  from fvcore.common.history_buffer import HistoryBuffer
  from detectron2.utils.file_io import PathManager
label_desc: Use image node_id 17 for calling the EventStorage obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types