human
Complete this python program:
def conserve_mpmath_dps(func):
assistant
#Here is the Python code you requested.

    """After the function finishes, resets the value of mpmath.mp.dps to
    the value it had before the function was run.
    """
    import functools
    import mpmath
    def func_wrapper(*args, **kwargs):
        dps = mpmath.mp.dps
        try:
            return func(*args, **kwargs)
        finally:
            mpmath.mp.dps = dps
    func_wrapper = functools.update_wrapper(func_wrapper, func)
    return func_wrapper