code: def check_fit_results(result):
      """Check the result of optimization."""
      assert result.nvarys == 8
      assert_allclose(result.chisqr, 1247.528209, rtol=1.0e-5)
      assert_allclose(result.aic, 417.864631, rtol=1.0e-5)
  
      pars = result.params
      assert_allclose(pars["exp_decay"], 90.950886, rtol=1.0e-5)
      assert_allclose(pars["exp_amplitude"], 99.018328, rtol=1.0e-5)
  
      assert_allclose(pars["g1_sigma"], 16.672575, rtol=1.0e-5)
      assert_allclose(pars["g1_center"], 107.030954, rtol=1.0e-5)
      assert_allclose(pars["g1_amplitude"], 4257.773192, rtol=1.0e-5)
      assert_allclose(pars["g1_fwhm"], 39.260914, rtol=1.0e-5)
      assert_allclose(pars["g1_height"], 101.880231, rtol=1.0e-5)
  
      assert_allclose(pars["g2_sigma"], 13.806948, rtol=1.0e-5)
      assert_allclose(pars["g2_center"], 153.270101, rtol=1.0e-5)
      assert_allclose(pars["g2_amplitude"], 2493.417703, rtol=1.0e-5)
      assert_allclose(pars["g2_fwhm"], 32.512878, rtol=1.0e-5)
      assert_allclose(pars["g2_height"], 72.045593, rtol=1.0e-5)
  
imports: import json
  import os
  import time
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  from lmfit import Parameters
  import lmfit.jsonutils
  from lmfit.lineshapes import gaussian, lorentzian
  from lmfit.model import Model, ModelResult, load_model, load_modelresult, save_model, save_modelresult
  from lmfit.models import ExponentialModel, ExpressionModel, GaussianModel, VoigtModel
label_desc: Use image node_id 4 for calling a global function with example usage: check_fit_results(result) without return types