code: def _add_many(q, lst):
      if isinstance(q, (NoopShufflingBuffer, RandomShufflingBuffer)):
          q.add_many(lst)
      else:
          q.add_many([lst])
  
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 2 for calling a global function with example usage: _add_many(q, lst) without return types