code: def __getitem__(self, index):
      return self.data[index]
  
file_path: H2O/h2o_flexgen/benchmark/third_party/DeepSpeed/tests/lightning/test_simple.py
imports: import torch
  from pytorch_lightning import LightningModule, Trainer
  from pytorch_lightning.strategies import DeepSpeedStrategy
  from torch.utils.data import DataLoader, Dataset
label_desc: Use image node_id 2 for calling the RandomDataset obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self