def __add__(self, other_dataset: "AnomalibDataset") -> "AnomalibDataset":
        """Concatenate this dataset with another dataset.

        Args:
            other_dataset (AnomalibDataset): Dataset to concatenate with.

        Returns:
            AnomalibDataset: Concatenated dataset.

        Raises:
            TypeError: If datasets are not of the same type.

        Example:
            >>> dataset1 = AnomalibDataset()
            >>> dataset2 = AnomalibDataset()
            >>> combined = dataset1 + dataset2
        """
        if not isinstance(other_dataset, self.__class__):
            msg = "Cannot concatenate datasets that are not of the same type."
            raise TypeError(msg)
        dataset = copy.deepcopy(self)
        dataset.samples = pd.concat([self.samples, other_dataset.samples], ignore_index=True)
        return dataset
Concatenate this dataset with another dataset.

        Args:
            other_dataset (AnomalibDataset): Dataset to concatenate with.

        Returns:
            AnomalibDataset: Concatenated dataset.

        Raises:
            TypeError: If datasets are not of the same type.

        Example:
            >>> dataset1 = AnomalibDataset()
            >>> dataset2 = AnomalibDataset()
            >>> combined = dataset1 + dataset2
        
src/anomalib/data/datasets/base/image.py