The stacklevel parameter in the warnings.warn() function allows you to change where the warning refers to, e.g. for when you\'re using a wrapper functi
stacklevel
warnings.warn()