def __getitem__(self, index: int):
        """Gets element of the dataset.

        Args:
            index: index of the element in the dataset

        Returns:
            Single element by index
        """
        if self.sampler_list is None:
            self.sampler_list = list(self.sampler)
        return self.sampler_list[index]
Gets element of the dataset.

        Args:
            index: index of the element in the dataset

        Returns:
            Single element by index
        
catalyst/data/dataset.py