def METHOD_NAME(self):
    warnings.warn(
        f"Method `{self.__class__.__name__}._get_base_widget` is deprecated, "
        f"please use property `{self.__class__.__name__}.base_widget`",
        DeprecationWarning,
        stacklevel=2,
    )
    return self.base_widget