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