def __getitem__(self, index_subset: int) -> Tuple[object, object, str]:
        """Retrieves a specific sample from the subset by its index.

        Args:
            index_subset:
                The index of a sample with respect to the subset.
                Index 0 corresponds to the first filename in filenames_subset.

        Returns:
            A tuple containing:
            - The sample data
            - The sample's target/label
            - The sample's 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
Retrieves a specific sample from the subset by its index.

        Args:
            index_subset:
                The index of a sample with respect to the subset.
                Index 0 corresponds to the first filename in filenames_subset.

        Returns:
            A tuple containing:
            - The sample data
            - The sample's target/label
            - The sample's filename
        
lightly/data/lightly_subset.py