code: def __getitem__(self, idx):
      return torch.Tensor(self.x[idx]), self.y[idx]
  
file_path: nni/examples/nas/legacy/notebooks/utils.py
imports: import os
  import torch
  import pandas
  from sklearn.preprocessing import LabelEncoder
  from torchvision.datasets.utils import download_url
label_desc: Use image node_id 3 for calling the TitanicDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: torch,  self