I think there might be something like this in ``pandas.utils.decorators.deprecate`` ?