code: def count_minibatches(inputs, batch_size):
      return int(math.ceil(count_samples(inputs) / batch_size))
  
file_path: neupy/neupy/utils/iters.py
imports: from __future__ import division
  import math
  import numpy
  import progressbar
  from neupy.utils.misc import as_tuple
label_desc: Use image node_id 2 for calling a global function with example usage: count_minibatches(inputs, batch_size) and returns: int