code: def count_samples(inputs):
      if isinstance(inputs, (list, tuple)):
          return count_samples(inputs[0])
      return len(inputs)
  
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 1 for calling a global function with example usage: count_samples(inputs) and returns: len, count_samples