def add_tile_prediction(self, tile_index: tuple[int, int], tile_prediction: list[ImageBatch]) -> None:
        """Add tile prediction data at provided index to class dictionary in main memory.

        Args:
            tile_index (tuple[int, int]): Index of tile that we are adding in form (row, column).
            tile_prediction (list[dict[str, Tensor | list]]):
                List of batches containing all predicted data for current tile position.

        """
        self.num_batches = len(tile_prediction)

        self.all_data[tile_index] = tile_prediction
Add tile prediction data at provided index to class dictionary in main memory.

        Args:
            tile_index (tuple[int, int]): Index of tile that we are adding in form (row, column).
            tile_prediction (list[dict[str, Tensor | list]]):
                List of batches containing all predicted data for current tile position.

        
src/anomalib/pipelines/tiled_ensemble/components/utils/prediction_data.py