docstr: overrides __getitem__ to be compatible to albumentations
docstr_tok: ["overrides","__getitem__","to","be","compatible","to","albumentations"]
code: def __getitem__(self, index: int):
      """overrides __getitem__ to be compatible to albumentations"""
      path, target = self.samples[index]
      sample = self.loader(path)
      sample = self.get_cv2_image(sample)
      if self.transforms is not None:
          transformed = self.transforms(image=sample, target=target)
          sample, target = transformed["image"], transformed["target"]
      else:
          if self.transform is not None:
              sample = self.transform(image=sample)["image"]
          if self.target_transform is not None:
              target = self.target_transform(target)
  
      return sample, target
  
file_path: deepchecks/docs/source/vision/tutorials/quickstarts/plot_classification_tutorial.py
imports: import os
  import urllib.request
  import zipfile
  import albumentations
  import numpy
  import PIL.Image
  import torch
  import torchvision
  from albumentations.pytorch import ToTensorV2
  from torch import nn
  from torch.utils.data import DataLoader
  from deepchecks.vision.vision_data import BatchOutputFormat
  from deepchecks.vision import VisionData
  from deepchecks.vision.suites import train_test_validation
label_desc: Use image node_id 1 for calling the AntsBeesDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: sample,  target