docstr: Return one sample of index, label and picture.
  :param index: index of the taken sample.
docstr_tok: ["Return","one","sample","of","index",",","label","and","picture",".",":","param","index",":","index","of","the","taken","sample","."]
code: def __getitem__(self, index):
      """
      Return one sample of index, label and picture.
      :param index: index of the taken sample.
      """
      if index >= len(self):
          raise IndexError
  
      img = Image.open(self.images_path[index])
      img = self.transforms(img)
  
      # Convert the resized images to network input shape
      # [h, w, c] -> [c, h, w] -> [1, c, h, w]
      img = np.expand_dims(np.transpose(np.array(img), (2, 0, 1)), 0)
  
      return (index, self.images_label[index]), img
  
imports: import os
  import json
  import random
  from PIL import Image
  import numpy
  from compression.api import DataLoader, Metric
  from torchvision.transforms import transforms
label_desc: Use image node_id 3 for calling the MyDataLoader obj's underlying member method code with example usage: obj.__getitem__(index) and returns: index,  self,  img