code: def estimate_batches(input_size, batch_size):
      """
      Estimate number of batches give `input_size` and `batch_size`
      """
      return int(np.ceil(input_size / batch_size))
  
file_path: cornac/cornac/utils/common.py
imports: import numbers
  import numpy
  import scipy.sparse
  from .fast_sparse_funcs import inplace_csr_row_normalize_l1, inplace_csr_row_normalize_l2
label_desc: Use image node_id 8 for calling a global function with example usage: estimate_batches(input_size, batch_size) and returns: int