class_docstr: ImageNet dataset.
class_docstr_tok: ["ImageNet","dataset","."]
code: def __getitem__(self, index):
      # Load the image
      im = cv2.imread(self._imdb[index]["im_path"])
      # Prepare the image for training / testing
      im = self._prepare_im(im)
      # Retrieve the label
      label = self._imdb[index]["class"]
      return im, label
  
file_path: pycls/pycls/datasets/imagenet.py
imports: import os
  import re
  import cv2
  import numpy
  import pycls.core.logging
  import pycls.datasets.transforms
  import torch.utils.data
  from pycls.core.config import cfg
label_desc: Use image node_id 4 for calling the ImageNet obj's underlying member method code with example usage: obj.__getitem__(index) and returns: im,  label