def __copy__(self) -> "SyntheticAnomalyDataset":
        """Return shallow copy and prevent cleanup of original.

        Returns:
            Shallow copy of the dataset object.
        """
        cls = self.__class__
        new = cls.__new__(cls)
        new.__dict__.update(self.__dict__)
        self._cleanup = False
        return new
Return shallow copy and prevent cleanup of original.

        Returns:
            Shallow copy of the dataset object.
        
src/anomalib/data/utils/synthetic.py