docstr: An overwrite for indexing.
  
  Args:
      index_subset:
          The index of a sample w.r.t. to the subset.
          E.g. if index_subset == 0, the sample belonging to
          the first filename in self.filenames_subset is returned.
  
  Returns:
      A tuple of the sample, its target and its filename.
docstr_tok: ["An","overwrite","for","indexing",".","Args",":","index_subset",":","The","index","of","a","sample","w.r.t",".","to","the","subset",".","E.g",".","if","index_subset","==","0",",","the","sample","belonging","to","the","first","filename","in","self.filenames_subset","is","returned",".","Returns",":","A","tuple","of","the","sample",",","its","target","and","its","filename","."]
code: def __getitem__(
      self, index_subset: int
  ) -> Tuple[object, object, str]:
      """An overwrite for indexing.
  
      Args:
          index_subset:
              The index of a sample w.r.t. to the subset.
              E.g. if index_subset == 0, the sample belonging to
              the first filename in self.filenames_subset is returned.
  
      Returns:
          A tuple of the sample, its target and its filename.
  
      """
      index_baseset = self.mapping_subset_index_to_baseset_index[
          index_subset
      ]
      sample, target, fname = self.base_dataset.__getitem__(
          index_baseset
      )
      return sample, target, fname
  
file_path: lightly/lightly/data/lightly_subset.py
imports: from typing import Dict, List, Tuple
  from lightly.data.dataset import LightlyDataset
label_desc: Use image node_id 2 for calling the LightlySubset obj's underlying member method code with example usage: obj.__getitem__(index_subset) and returns: sample,  target,  fname