code: def number_batches(self):
      if self._batch_size is None:
          return 1
      return int(
          np.ceil(self._inputs[0].shape[0] * 1.0 / self._batch_size)
      )
  
imports: import numpy
label_desc: Use image node_id 2 for calling the BatchDataset obj's underlying member method code with example usage: obj.number_batches() and returns: int, int