code: def test_minibatches(self):
      n_samples = 50
      batch_size = 20
      expected_shapes = [(20, 2), (20, 2), (10, 2)]
  
      data = np.random.random((n_samples, 2))
      batch_slices = list(iters.minibatches(data, batch_size))
  
      for batch, expected_shape in zip(batch_slices, expected_shapes):
          self.assertEqual(batch.shape, expected_shape)
  
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 1 for calling the ItersUtilsTestCase obj's underlying member method code with example usage: obj.test_minibatches() without return types