class_docstr: A Python Queue that also returns the index of the inserted element.
class_docstr_tok: ["A","Python","Queue","that","also","returns","the","index","of","the","inserted","element","."]
code: def __init__(self, *args, **kwargs):
      super().__init__(*args, **kwargs)
      self._counter = AtomicCounter()
  
file_path: avalanche/avalanche/benchmarks/utils/ffcv_support/ffcv_epoch_iterator.py
imports: from threading import Thread, Event, Lock
  from queue import Queue
  from typing import List, Sequence, TYPE_CHECKING
  from ffcv.traversal_order.quasi_random import QuasiRandom
  from ffcv.loader.epoch_iterator import EpochIterator, QUASIRANDOM_ERROR_MSG
  import torch
label_desc: Use image node_id 1 to create a new _QueueWithIndex object from inherited base classes: Queue with example: obj = _QueueWithIndex()