def __init__(self, **kwargs) -> None:
        """Initialize with deprecation warning.

        Args:
            **kwargs: Keyword arguments passed to parent ``Threshold`` class.
        """
        warnings.warn(
            "BaseThreshold is deprecated and will be removed in a future version. Use Threshold instead.",
            DeprecationWarning,
            stacklevel=2,
        )
        super().__init__(**kwargs)
Initialize with deprecation warning.

        Args:
            **kwargs: Keyword arguments passed to parent ``Threshold`` class.
        
src/anomalib/metrics/threshold/base.py