<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def capture_exception(fn):
 """decorator that catches and returns an exception from wrapped function"""

    def wrapped(*args):
        try:
            return fn(*args)
        except Exception as e:
            return e
    return wrapped