def METHOD_NAME(log, suppress_exception, raise_exception, do_return):
    a = 5
    try:
        with Context(log, suppress_exception, raise_exception) as sample:
            if do_return:
                a = sample.do_something()
                return a
            else:
                a = sample.do_something()
    except ZeroDivisionError:
        log.append("Exception has been thrown correctly")
    else:
        log.append("no exception or exception suppressed")
    finally:
        log.append("a = %s" % a)
    return a