code: def __getitem__(self, idx):
      return (self.head[idx], self.tail[idx], self.rel[idx])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import random
  import numpy
  import torch
  from torch.utils.data import Dataset, DataLoader
label_desc: Use image node_id 3 for calling the PyTorchTrainDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: self,  self,  self