code: def __getitem__(self, i: int):
      return self.sampler[i], i
  
file_path: qlib/qlib/model/utils.py
imports: from torch.utils.data import Dataset
label_desc: Use image node_id 2 for calling the IndexSampler obj's underlying member method code with example usage: obj.__getitem__(i) and returns: self,  i