code: def test_apply_to_iterator_with_infinite_iterator(self):
      def func(*in_values):
          n_sample = len(in_values[0])
          return [
              np.random.uniform(size=(48, 64)) for _ in range(n_sample)
          ]
  
      dataset = []
      for _ in range(5):
          H, W = np.random.randint(8, 16, size=2)
          dataset.append(np.random.randint(0, 256, size=(3, H, W)))
  
      iterator = SerialIterator(dataset, 2)
  
      in_values, out_values, rest_values = apply_to_iterator(
          func, iterator
      )
  
      for _ in range(10):
          next(in_values[0])
  
      for _ in range(10):
          next(out_values[0])
  
file_path: chainercv/tests/utils_tests/iterator_tests/test_apply_to_iterator.py
imports: import numpy
  from six.moves import zip_longest
  import unittest
  import chainer
  from chainer.iterators import SerialIterator
  from chainer import testing
  from chainermn import create_communicator
  from chainercv.utils import apply_to_iterator
  from chainercv.utils.testing import attr
label_desc: Use image node_id 1 for calling the TestApplyToIteratorWithInfiniteIterator obj's underlying member method code with example usage: obj.test_apply_to_iterator_with_infinite_iterator() and returns: unknown