code: def __getitem__(self, index):
      return (
          self.triple[index, 0],
          self.triple[index, 1],
          self.triple[index, 2].float(),
      )
  
file_path: dgl/examples/pytorch/TAHIN/data_loader.py
imports: import os
  import pickle
  import random
  import dgl
  import numpy
  import torch
  from torch.utils.data import DataLoader, Dataset
label_desc: Use image node_id 2 for calling the MyDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self,  self,  self