docstr: Get datapoint with index
docstr_tok: ["Get","datapoint","with","index"]
code: def __getitem__(self, idx):
      """Get datapoint with index"""
      data = Data()
      smiles, y = self.smiles_list[idx]
      graph = self.smiles2graph(smiles)
  
      data.__num_nodes__ = int(graph["num_nodes"])
      data.edge_index = torch.from_numpy(graph["edge_index"]).to(
          torch.int64
      )
      data.edge_attr = torch.from_numpy(graph["edge_feat"]).to(
          torch.int64
      )
      data.x = torch.from_numpy(graph["node_feat"]).to(torch.int64)
  
      return data
  
imports: import torch
  from torch_geometric.data import DataLoader
  import torch.optim
  import torch.nn.functional
  from torch.utils.tensorboard import SummaryWriter
  from torch.optim.lr_scheduler import StepLR
  from gnn import GNN
  import os
  from tqdm import tqdm
  import argparse
  import time
  import numpy
  import random
  from ogb.lsc import PCQM4Mv2Dataset, PCQM4Mv2Evaluator
  from ogb.utils import smiles2graph
  from torch_geometric.data import Data
label_desc: Use image node_id 2 for calling the OnTheFlyPCQMDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: data