def __getitem__(self, idx: int) -> dict:
        """
        Args:
            idx: Index

        Returns:
             Dict with 2 fields: ``image`` and ``mask``
        """
        image_path = str(self.image_paths[idx])
        mask_path = str(self.mask_paths[idx])
        result = {"image": cv2.imread(image_path), "mask": cv2.imread(mask_path, 2)}
        if self.transforms is not None:
            result = self.transforms(**result)
        return result

        Args:
            idx: Index

        Returns:
             Dict with 2 fields: ``image`` and ``mask``
        
catalyst/contrib/datasets/imagecar.py