docstr: Get datapoint with index
docstr_tok: ["Get","datapoint","with","index"]
code: def __getitem__(self, idx):
      """Get datapoint with index"""
  
      if isinstance(idx, (int, np.integer)):
          return self.graphs[idx], self.labels[idx]
  
      raise IndexError(
          "Only integer is valid index (got {}).".format(
              type(idx).__name__
          )
      )
  
imports: from typing import Optional, Union, Dict
  import os
  import os.path
  import shutil
  from ogb.utils import smiles2graph
  from ogb.utils.url import decide_download, download_url, extract_zip
  import pandas
  import numpy
  from tqdm.auto import tqdm
  import torch
label_desc: Use image node_id 6 for calling the PCQM4MDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: self,  self