class_docstr: ### CelebA HQ dataset
class_docstr_tok: ["#","#","#","CelebA","HQ","dataset"]
docstr: Get an image
docstr_tok: ["Get","an","image"]
code: def __getitem__(self, index: int):
      """
      Get an image
      """
      img = Image.open(self._files[index])
      return self._transform(img)
  
imports: from typing import List
  import torch
  import torch.utils.data
  import torchvision
  from PIL import Image
  from labml import lab, tracker, experiment, monit
  from labml.configs import BaseConfigs, option
  from labml_helpers.device import DeviceConfigs
  from labml_nn.diffusion.ddpm import DenoiseDiffusion
  from labml_nn.diffusion.ddpm.unet import UNet
label_desc: Use image node_id 3 for calling the CelebADataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self