code: def conserve_mpmath_dps(func):
      """After the function finishes, resets the value of ``mpmath.mp.dps`` to
      the value it had before the function was run."""
      import mpmath
  
      def func_wrapper(*args, **kwargs):
          dps = mpmath.mp.dps
          try:
              return func(*args, **kwargs)
          finally:
              mpmath.mp.dps = dps
  
      func_wrapper = update_wrapper(func_wrapper, func)
      return func_wrapper
  
file_path: sympy/sympy/utilities/decorator.py
imports: import sys
  import types
  import inspect
  from functools import wraps, update_wrapper
  from sympy.utilities.exceptions import sympy_deprecation_warning
label_desc: Use image node_id 4 for calling a global function with example usage: conserve_mpmath_dps(func) and returns: func_wrapper, func