def __getitem__(self, index: int) -> Dict[str, torch.Tensor]:
        """Get item from dataset.

        Args:
            index: index of the element

        Returns:
            dict of image and its pid
        """
        image, pid = self.images[index], self.pids[index]
        if self.transform is not None:
            image = self.transform(image)
        return {"image": image, "pid": pid}
Get item from dataset.

        Args:
            index: index of the element

        Returns:
            dict of image and its pid
        
catalyst/contrib/datasets/market1501.py