class_docstr: Generic container to quickly build `Datasets` and `DataLoaders`.
class_docstr_tok: ["Generic","container","to","quickly","build","`","Datasets","`","and","`","DataLoaders","`","."]
code: def datasets(
      self,
      source,  # The data source
      verbose: bool = False,  # Show verbose messages
  ) -> Datasets:
      self.source = source
      pv(f"Collecting items from {source}", verbose)
      items = (self.get_items or noop)(source)
      pv(f"Found {len(items)} items", verbose)
      splits = (self.splitter or RandomSplitter())(items)
      pv(
          f"{len(splits)} datasets of sizes {','.join([str(len(s)) for s in splits])}",
          verbose,
      )
      return Datasets(
          items,
          tfms=self._combine_type_tfms(),
          splits=splits,
          dl_type=self.dl_type,
          n_inp=self.n_inp,
          verbose=verbose,
      )
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from .core import *
  from .load import *
  from .external import *
  from .transforms import *
  from inspect import isfunction, ismethod
  from .load import _collate_types
label_desc: Use image node_id 5 for calling the DataBlock obj's underlying member method code with example usage: obj.datasets(source, verbose) and returns: Datasets