code: def test_batch_average(self):
      expected_error = 0.9  # or 225 / 250
      actual_error = average_batch_errors([1, 1, 0.5], 250, 100)
      self.assertAlmostEqual(expected_error, actual_error)
  
      expected_error = 0.8  # or 240 / 300
      actual_error = average_batch_errors([1, 1, 0.4], 300, 100)
      self.assertAlmostEqual(expected_error, actual_error)
  
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 8 for calling the ItersUtilsTestCase obj's underlying member method code with example usage: obj.test_batch_average() without return types