class_docstr: Abstract base class for datasets. Subclasses should implement the `__getitem__` and `__len__` methods.
class_docstr_tok: ["Abstract","base","class","for","datasets",".","Subclasses","should","implement","the","`","__getitem__","`","and","`","__len__","`","methods","."]
docstr: Abstract method. In a subclass this should return the number of data samples in the dataset.
docstr_tok: ["Abstract","method",".","In","a","subclass","this","should","return","the","number","of","data","samples","in","the","dataset","."]
code: def __len__(self) -> int:
      """Abstract method. In a subclass this should return the number of data samples in the dataset."""
      raise NotImplementedError
  
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 Dataset obj's underlying member method code with example usage: obj.__len__() without return types