code: def _retrieve_many(q):
      if isinstance(q, (NoopShufflingBuffer, RandomShufflingBuffer)):
          return [q.retrieve()]
      else:
          return [a.item() for a in q.retrieve()[0]]
  
file_path: petastorm/petastorm/tests/test_shuffling_buffer.py
imports: import numpy
  import pytest
  import six
  from petastorm.reader_impl.shuffling_buffer import NoopShufflingBuffer, RandomShufflingBuffer
  from petastorm.reader_impl.pytorch_shuffling_buffer import BatchedNoopShufflingBuffer, BatchedRandomShufflingBuffer
label_desc: Use image node_id 5 for calling a global function with example usage: _retrieve_many(q) and returns: list, unknown