code: def copy_vals(params):
      """Save values/stderrs of parameters in a temporary dictionary."""
      tmp_params = {}
      for para_key in params:
          tmp_params[para_key] = (
              params[para_key].value,
              params[para_key].stderr,
          )
      return tmp_params
  
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 2 for calling a global function with example usage: copy_vals(params) and returns: tmp_params