code: def load(
      name: str,
      *,
      root: Optional[Union[str, pathlib.Path]] = None,
      **config: Any,
  ) -> Dataset:
      dataset_cls = find(BUILTIN_DATASETS, name)
  
      if root is None:
          root = pathlib.Path(home()) / name
  
      return dataset_cls(root, **config)
  
file_path: vision/torchvision/prototype/datasets/_api.py
imports: import pathlib
  from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union
  from torchvision.prototype.datasets import home
  from torchvision.prototype.datasets.utils import Dataset
  from torchvision.prototype.utils._internal import add_suggestion
label_desc: Use image node_id 6 for calling a global function with example usage: load(name) and returns: dataset_cls