def __getitem__(self, index):
        """
        Args:
            index: Index

        Returns:
            tuple: (image, target) where target is index of the target class.
        """
        img, target = self.data[index].float().unsqueeze(0), int(self.targets[index])
        if self.normalize is not None:
            img = self.normalize_tensor(img, *self.normalize)
        if self.numpy:
            img = img.cpu().numpy()[0]

        return img, target

        Args:
            index: Index

        Returns:
            tuple: (image, target) where target is index of the target class.
        
catalyst/contrib/datasets/mnist.py