docstr: Check edge case, when workers consistently does not produce results
docstr_tok: ["Check","edge","case",",","when","workers","consistently","does","not","produce","results"]
code: def test_worker_produces_no_results(self):
      """Check edge case, when workers consistently does not produce results"""
      # 10000 is an interesting case as in the original implementation it caused stack overflow
      for ventilate_count in [10, 10000]:
          for pool in [DummyPool(), ThreadPool(2)]:
              pool.start(
                  PreprogrammedReturnValueWorker, ventilate_count * [[]]
              )
              for _ in range(ventilate_count):
                  pool.ventilate("not_important")
  
              with self.assertRaises(EmptyResultError):
                  pool.get_results()
  
              pool.stop()
              pool.join()
  
imports: import time
  import unittest
  import numpy
  from multiprocessing import Process, Manager
  from psutil import pid_exists
  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 CoeffMultiplierWorker, WorkerIdGeneratingWorker, WorkerMultiIdGeneratingWorker, SleepyWorkerIdGeneratingWorker, ExceptionGeneratingWorker_5, PreprogrammedReturnValueWorker
  from petastorm.workers_pool.thread_pool import ThreadPool
label_desc: Use image node_id 22 for calling the TestWorkersPool obj's underlying member method code with example usage: obj.test_worker_produces_no_results() without return types