code: def __getitem__(self, index):
      idx = self.imgidx[index]
      s = self.imgrec.read_idx(idx)
      header, img = mx.recordio.unpack(s)
      label = header.label
      if not isinstance(label, numbers.Number):
          label = label[0]
      sample = mx.image.imdecode(img).asnumpy()
      label = torch.tensor(label, dtype=torch.long)
      if self.transform is not None:
          sample = self.transform(sample)
      return sample, label
  
imports: import numbers
  import os
  import queue
  import threading
  import mxnet
  import numpy
  import torch
  from torch.utils.data import DataLoader, Dataset
  from torchvision import transforms
label_desc: Use image node_id 2 for calling the MXFaceDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: sample,  label