class_docstr: Dataset which reads images from a local filesystem. Implements ClassyDataset.
class_docstr_tok: ["Dataset","which","reads","images","from","a","local","filesystem",".","Implements","ClassyDataset","."]
docstr: Instantiates ImagePathDataset from a config.
  
  Args:
      config: A configuration for ImagePathDataset.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      An ImagePathDataset instance.
docstr_tok: ["Instantiates","ImagePathDataset","from","a","config",".","Args",":","config",":","A","configuration","for","ImagePathDataset",".","See",":","func",":","`","__init__","`","for","parameters","expected","in","the","config",".","Returns",":","An","ImagePathDataset","instance","."]
code: def from_config(cls, config: Dict[str, Any]):
      """Instantiates ImagePathDataset from a config.
  
      Args:
          config: A configuration for ImagePathDataset.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          An ImagePathDataset instance.
      """
      (
          transform_config,
          batchsize_per_replica,
          shuffle,
          num_samples,
      ) = cls.parse_config(config)
  
      transform = build_transforms(transform_config)
      return cls(
          batchsize_per_replica,
          shuffle,
          transform,
          num_samples,
          image_folder=config.get("image_folder"),
          image_files=config.get("image_files"),
      )
  
file_path: ClassyVision/classy_vision/dataset/image_path_dataset.py
imports: import os.path
  from typing import Any, Callable, Dict, List, Optional, Union
  from torchvision import datasets, transforms
  from .None import ClassyDataset, register_dataset
  from .core import ListDataset
  from .transforms import build_transforms, ClassyTransform, TupleToMapTransform
label_desc: Use image node_id 2 for calling the ImagePathDataset obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls