class_docstr: Classy Dataset which produces random synthetic video clips.
  
  Useful for testing since the dataset is much faster to initialize and fetch samples
  from, compared to real world datasets.
  
  Note: Unlike :class:`SyntheticImageDataset`, this dataset generates targets
      randomly, independent of the video clips.
class_docstr_tok: ["Classy","Dataset","which","produces","random","synthetic","video","clips",".","Useful","for","testing","since","the","dataset","is","much","faster","to","initialize","and","fetch","samples","from",",","compared","to","real","world","datasets",".","Note",":","Unlike",":","class",":","`","SyntheticImageDataset","`",",","this","dataset","generates","targets","randomly",",","independent","of","the","video","clips","."]
docstr: Instantiates a SyntheticVideoDataset from a configuration.
  
  Args:
      config: A configuration for a SyntheticVideoDataset.
          See :func:`__init__` for parameters expected in the config.
  
  Returns:
      A SyntheticVideoDataset instance.
docstr_tok: ["Instantiates","a","SyntheticVideoDataset","from","a","configuration",".","Args",":","config",":","A","configuration","for","a","SyntheticVideoDataset",".","See",":","func",":","`","__init__","`","for","parameters","expected","in","the","config",".","Returns",":","A","SyntheticVideoDataset","instance","."]
code: def from_config(
      cls, config: Dict[str, Any]
  ) -> "SyntheticVideoDataset":
      """Instantiates a SyntheticVideoDataset from a configuration.
  
      Args:
          config: A configuration for a SyntheticVideoDataset.
              See :func:`__init__` for parameters expected in the config.
  
      Returns:
          A SyntheticVideoDataset instance.
      """
      split = config["split"]
      num_classes = config["num_classes"]
      (
          transform_config,
          batchsize_per_replica,
          shuffle,
          num_samples,
          frames_per_clip,
          video_width,
          video_height,
          video_min_dimension,
          audio_samples,
          step_between_clips,
          frame_rate,
          clips_per_video,
      ) = cls.parse_config(config)
  
      transform = build_video_field_transform_default(
          transform_config, split
      )
      return cls(
          num_classes,
          split,
          batchsize_per_replica,
          shuffle,
          transform,
          num_samples,
          frames_per_clip,
          video_width,
          video_height,
          audio_samples,
          clips_per_video,
      )
  
file_path: ClassyVision/classy_vision/dataset/classy_synthetic_video.py
imports: from typing import Any, Callable, Dict
  from classy_vision.generic.distributed_util import get_rank, get_world_size
  from torch.utils.data.distributed import DistributedSampler
  from .None import register_dataset
  from .classy_video_dataset import ClassyVideoDataset
  from .core import RandomVideoDataset
  from .transforms.util_video import build_video_field_transform_default
label_desc: Use image node_id 2 for calling the SyntheticVideoDataset obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls