code: def test_randomize_item_order(self):
      size = 100
      pool = DummyPool()
      items_to_ventilate_1 = [{"item": i} for i in range(size)]
      ventilator = ConcurrentVentilator(
          pool.ventilate, items_to_ventilate=items_to_ventilate_1
      )
      pool.start(IdentityWorker, ventilator=ventilator)
      first_results = [pool.get_results() for _ in range(size)]
      pool.stop()
      pool.join()
  
      pool = DummyPool()
      items_to_ventilate_2 = [{"item": i} for i in range(size)]
      ventilator = ConcurrentVentilator(
          pool.ventilate,
          items_to_ventilate=items_to_ventilate_2,
          randomize_item_order=True,
      )
      pool.start(IdentityWorker, ventilator=ventilator)
      second_results = [pool.get_results() for _ in range(size)]
      pool.stop()
      pool.join()
  
      # Because we're using the dummy pool, without randomizing item order the results
      # should be exactly the list of ventilation items
      self.assertEqual(
          first_results, [item["item"] for item in items_to_ventilate_1]
      )
      self.assertNotEqual(first_results, second_results)
  
      pool.stop()
      pool.join()
  
imports: import time
  import unittest
  from petastorm.workers_pool import EmptyResultError
  from petastorm.workers_pool.dummy_pool import DummyPool
  from petastorm.workers_pool.process_pool import ProcessPool
  from petastorm.workers_pool.tests.stub_workers import IdentityWorker
  from petastorm.workers_pool.thread_pool import ThreadPool
  from petastorm.workers_pool.ventilator import ConcurrentVentilator
label_desc: Use image node_id 11 for calling the TestWorkersPool obj's underlying member method code with example usage: obj.test_randomize_item_order() without return types