def __init__(self):
        self.warnings = __import__("warnings")
    def __getattr__(self, name):
        return getattr(self.warnings, name)
    def __dir__(self):
        return dir(self.warnings)
    def warn(self, message, category=None, stacklevel=1, source=None):
        self.warnings.warn(message, category, stacklevel + 2, source)
def fixup_decorator_warning_stack(func):
    if func.__globals__.get("warnings") is sys.modules["warnings"]:
        
        
        func.__globals__["warnings"] = _autostacklevel_warn()