I guess the [self.idx[index]] would be the correct way to go.
The logic being that if you use the self.data_info[0][index] directly, then the skip_every_n_image would become useless. But when you use self.data_info[0][self.idx[index]], you are making use of the self.idx which has the data after skipping every n images.