class_docstr: Same as BatchedDataLoader except it only loads upto capacity rows into memory.
  This class doesn't allow to be used multiple-times, so it doesn't inherit LoaderBase.
code: def __exit__(self, exc_type, exc_val, exc_tb):
      pass
  
imports: import collections.abc
  import decimal
  import re
  import logging
  import numpy
  from six import PY2
  from torch.utils.data.dataloader import default_collate
  import torch
  from packaging import version
  from petastorm.reader_impl.shuffling_buffer import RandomShufflingBuffer, NoopShufflingBuffer
  from petastorm.reader_impl.pytorch_shuffling_buffer import BatchedRandomShufflingBuffer, BatchedNoopShufflingBuffer
label_desc: Use image node_id 4 for calling the InMemBatchedDataLoader obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types