code: def get_event_storage():
      """
      Returns:
          The :class:`EventStorage` object that's currently being used.
          Throws an error if no :class:`EventStorage` is currently enabled.
      """
      assert len(
          _CURRENT_STORAGE_STACK
      ), "get_event_storage() has to be called inside a 'with EventStorage(...)' context!"
      return _CURRENT_STORAGE_STACK[-1]
  
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 1 for calling a global function with example usage: get_event_storage() and returns: _CURRENT_STORAGE_STACK