class_docstr: A dataset of images with data augmentation.
  
  .. note ::
      requires `torchvision` to be installed.
code: def __getitem__(self, item: int) -> torch.Tensor:  # noqa:D105
      _ensure_vision(self, Image)
      image = self.images[item]
      if isinstance(image, (str, pathlib.Path)):
          path = pathlib.Path(image)
          if not path.is_absolute():
              path = self.root.joinpath(path)
          image = Image.open(path)
      assert isinstance(image, (torch.Tensor, Image.Image))
      return self.transforms(image)
  
imports: import functools
  import pathlib
  from typing import Any, Callable, Optional, Sequence, Union
  import torch
  import torch.nn
  import torch.utils.data
  from class_resolver import OptionalKwargs
  from docdata import parse_docdata
  from .representation import BackfillRepresentation, Representation
  from .utils import ShapeError, WikidataCache
  from ..datasets import Dataset
  from ..triples import TriplesFactory
  from ..typing import OneOrSequence
label_desc: Use image node_id 2 for calling the VisionDataset obj's underlying member method code with example usage: obj.__getitem__(item) and returns: self