def METHOD_NAME(tp, value, tb=None, cause=None):
    if cause is not None:
        assert cause is not value, "Same cause emitted"
        value.__cause__ = cause
    if value.__traceback__ is not tb:
        raise value.with_traceback(tb)
    raise value