def METHOD_NAME(exception, exc_traceback=Unknown):
    assert isinstance(exception, Exception)
    if exc_traceback is Unknown:
        exc_traceback = sys.exc_info()[2]
    exception.__traceback__ = exc_traceback