code: def test_apply_batches_with_progressbar(self):
      # So far we just make sure that test didn't trigger any error
      # In the future, we need to check content of the terminal output
      outputs = iters.apply_batches(
          function=lambda x: x * 2,
          inputs=np.arange(20),
          batch_size=8,
          show_progressbar=True,
      )
      self.assertEqual(len(outputs), 3)
  
file_path: neupy/tests/utils/test_iters.py
imports: import numpy
  from neupy.utils import iters
  from neupy.utils.iters import average_batch_errors, count_samples, count_minibatches
  from base import BaseTestCase
label_desc: Use image node_id 6 for calling the ItersUtilsTestCase obj's underlying member method code with example usage: obj.test_apply_batches_with_progressbar() without return types