code: def build_dataset(config, *args, **kwargs):
      """Builds a :class:`ClassyDataset` from a config.
  
      This assumes a 'name' key in the config which is used to determine what
      dataset class to instantiate. For instance, a config `{"name": "my_dataset",
      "folder": "/data"}` will find a class that was registered as "my_dataset"
      (see :func:`register_dataset`) and call .from_config on it."""
      dataset = DATASET_REGISTRY[config["name"]].from_config(
          config, *args, **kwargs
      )
      num_workers = config.get("num_workers")
      if num_workers is not None:
          dataset.set_num_workers(num_workers)
      return dataset
  
file_path: ClassyVision/classy_vision/dataset/__init__.py
imports: import traceback
  from pathlib import Path
  from classy_vision.generic.registry_utils import import_all_modules
  from .classy_dataset import ClassyDataset
  from .classy_cifar import CIFARDataset
  from .classy_hmdb51 import HMDB51Dataset
  from .classy_kinetics400 import Kinetics400Dataset
  from .classy_synthetic_image import SyntheticImageDataset
  from .classy_synthetic_image_streaming import SyntheticImageStreamingDataset
  from .classy_synthetic_video import SyntheticVideoDataset
  from .classy_ucf101 import UCF101Dataset
  from .classy_video_dataset import ClassyVideoDataset
  from .dataloader_async_gpu_wrapper import DataloaderAsyncGPUWrapper
  from .dataloader_limit_wrapper import DataloaderLimitWrapper
  from .dataloader_skip_none_wrapper import DataloaderSkipNoneWrapper
  from .dataloader_wrapper import DataloaderWrapper
  from .image_path_dataset import ImagePathDataset
label_desc: Use image node_id 1 for calling a global function with example usage: build_dataset(config) and returns: dataset