code: def restore_vals(tmp_params, params):
      """Restore values/stderrs of parameters from a temporary dictionary."""
      for para_key in params:
          params[para_key].value, params[para_key].stderr = tmp_params[
              para_key
          ]
  
file_path: lmfit-py/lmfit/confidence.py
imports: from warnings import warn
  import numpy
  from scipy.optimize import root_scalar
  from scipy.special import erf
  from scipy.stats import f
  from .minimizer import MinimizerException
label_desc: Use image node_id 3 for calling a global function with example usage: restore_vals(tmp_params, params) without return types