class_docstr: Generic container to quickly build `Datasets` and `DataLoaders`.
class_docstr_tok: ["Generic","container","to","quickly","build","`","Datasets","`","and","`","DataLoaders","`","."]
code: def from_columns(
      cls,
      blocks: list = None,  # One or more `TransformBlock`s
      getters: list = None,  # Getter functions applied to results of `get_items`
      get_items: callable = None,  # A function to get items
      **kwargs,
  ):
      if getters is None:
          getters = L(
              ItemGetter(i)
              for i in range(2 if blocks is None else len(L(blocks)))
          )
      get_items = (
          _zip if get_items is None else compose(get_items, _zip)
      )
      return cls(
          blocks=blocks, getters=getters, get_items=get_items, **kwargs
      )
  
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 4 for calling the DataBlock obj's underlying member method code with example usage: obj.from_columns(cls, blocks, getters, get_items) and returns: cls