code: def __init__(self, sampler):
      self.sampler = sampler
  
file_path: qlib/qlib/model/utils.py
imports: from torch.utils.data import Dataset
label_desc: Use image node_id 1 to create a new IndexSampler object  with example: obj = IndexSampler(sampler)