docstr: Instantiates a CIFARDataset from a configuration.
  
  Args:
      config: A configuration for a CIFARDataset.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      A CIFARDataset instance.
code: def from_config(cls, config: Dict[str, Any]) -> "CIFARDataset":
      """Instantiates a CIFARDataset from a configuration.
  
      Args:
          config: A configuration for a CIFARDataset.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          A CIFARDataset instance.
      """
      (
          transform_config,
          batchsize_per_replica,
          shuffle,
          num_samples,
      ) = cls.parse_config(config)
      split = config.get("split")
      root = config.get("root")
      download = config.get("download")
  
      transform = build_transforms(transform_config)
      return cls(
          split=split,
          batchsize_per_replica=batchsize_per_replica,
          shuffle=shuffle,
          transform=transform,
          num_samples=num_samples,
          root=root,
          download=download,
      )
  
file_path: ClassyVision/classy_vision/dataset/classy_cifar.py
imports: from typing import Any, Callable, Dict, Optional, Union
  from classy_vision.dataset import ClassyDataset, register_dataset
  from classy_vision.dataset.transforms import build_transforms, ClassyTransform
  from torchvision.datasets.cifar import CIFAR10, CIFAR100
label_desc: Use image node_id 2 for calling the CIFARDataset obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls