code: def test_random_shuffling_buffer_stream_through(buffer_type):
      """Feed a 0:99 sequence through a (Batched)RandomShufflingBuffer. Check that the order has changed."""
      input_sequence = range(100)
      a = _feed_a_sequence_through_the_queue(
          buffer_type(10, 3), input_sequence
      )
      b = _feed_a_sequence_through_the_queue(
          buffer_type(10, 3), input_sequence
      )
      assert len(a) == len(input_sequence)
      assert set(a) == set(b)
      assert a != b
  
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 7 for calling a global function with example usage: test_random_shuffling_buffer_stream_through(buffer_type) without return types