code: def test_run_benchmark_cycle_length_of_warmup_and_measure_cycles():
      measurable = mock.Mock()
      reader_mock = mock.Mock()
      _time_warmup_and_work(reader_mock, 2, 3, measurable.next_item)
      assert 5 == measurable.next_item.call_count
  
      measurable = mock.Mock()
      _time_warmup_and_work(reader_mock, 6, 7, measurable.next_item)
      assert 13 == measurable.next_item.call_count
  
file_path: petastorm/petastorm/tests/test_benchmark.py
imports: from time import sleep
  import six
  from unittest import mock
  from petastorm.benchmark.throughput import reader_throughput, _time_warmup_and_work, WorkerPoolType, ReadMethod
label_desc: Use image node_id 6 for calling a global function with example usage: test_run_benchmark_cycle_length_of_warmup_and_measure_cycles() without return types