code: def __init__(self, path):
      self.values = []
      self.read_data(path)
  
imports: import torch
  from fairseq import data
label_desc: Use image node_id 1 to create a new IndexedWeightsDataset object from inherited base classes: data.indexed_dataset with example: obj = IndexedWeightsDataset(path)