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

        Args:
            index: index of the item to get

        Returns:
            dict of image, pid, cid and is_query flag
            that shows if the image should be used as query or gallery sample.
        """
        img = self.data[index]
        if self.transform is not None:
            img = self.transform(img)
        item = {
            "image": img,
            "pid": self.pids[index],
            "cid": self.cids[index],
            "is_query": self._is_query[index],
        }
        return item
Get an item from dataset

        Args:
            index: index of the item to get

        Returns:
            dict of image, pid, cid and is_query flag
            that shows if the image should be used as query or gallery sample.
        
catalyst/contrib/datasets/market1501.py