code: def test_progress_hook(self):
      iterator = SerialIterator(self.dataset, 2, repeat=False)
  
      in_values, out_values, rest_values = apply_to_iterator(
          self.func,
          iterator,
          hook=ProgressHook(n_total=len(self.dataset)),
      )
  
      # consume all data
      for _ in in_values[0]:
          pass
  
file_path: chainercv/tests/utils_tests/iterator_tests/test_progress_hook.py
imports: import numpy
  import unittest
  from chainer.iterators import SerialIterator
  from chainer import testing
  from chainercv.utils import apply_to_iterator
  from chainercv.utils import ProgressHook
label_desc: Use image node_id 2 for calling the TestProgressHook obj's underlying member method code with example usage: obj.test_progress_hook() without return types