class_docstr: Loads samples from a dataset and combines them into batches. Can be directly passed to `Model.fit()`
class_docstr_tok: ["Loads","samples","from","a","dataset","and","combines","them","into","batches",".","Can","be","directly","passed","to","`","Model.fit","(",")","`"]
docstr: Returns the number of batches per epoch
docstr_tok: ["Returns","the","number","of","batches","per","epoch"]
code: def __len__(self) -> int:
      """Returns the number of batches per epoch"""
      return int(np.ceil(len(self.dataset) / self.batch_size))
  
imports: import multiprocessing.pool
  import os
  import typing
  import jax
  import jax.numpy
  import numpy
  from .data_adapter import DataAdapter
  from .utils import is_none_or_empty
label_desc: Use image node_id 2 for calling the DataLoader obj's underlying member method code with example usage: obj.__len__() and returns: int