def name(self) -> str:
        """Get the name of the dataset.

        Returns:
            str: Name of the dataset derived from the class name, with 'Dataset' suffix
                removed if present.

        Example:
            >>> dataset = AnomalibDataset()
            >>> dataset.name
            'Anomalib'
        """
        class_name = self.__class__.__name__

        # Remove the `_dataset` suffix from the class name
        if class_name.endswith("Dataset"):
            class_name = class_name[:-7]

        return class_name
Get the name of the dataset.

        Returns:
            str: Name of the dataset derived from the class name, with 'Dataset' suffix
                removed if present.

        Example:
            >>> dataset = AnomalibDataset()
            >>> dataset.name
            'Anomalib'
        
src/anomalib/data/datasets/base/image.py