code: def __getitem__(self, idx):
      assert idx >= 0 and idx < len(self)
      img = self.loader(self.files[idx])
      item = {"input": img}
      if self.metadata is not None:
          item.update(self.metadata[idx])
  
      return item
  
imports: from torchvision.datasets.folder import default_loader
label_desc: Use image node_id 2 for calling the ListDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: item