code: def test_count_minibatches(self):
      x = np.random.random((10, 5))
  
      self.assertEqual(count_minibatches(x, batch_size=2), 5)
      self.assertEqual(count_minibatches(x, batch_size=3), 4)
      self.assertEqual(count_minibatches([x], batch_size=5), 2)
      self.assertEqual(count_minibatches([[x], None], batch_size=4), 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 10 for calling the ItersUtilsTestCase obj's underlying member method code with example usage: obj.test_count_minibatches() without return types