code: def test_component_uncertainties():
      "test dely_comps"
      y, x = np.loadtxt(
          os.path.join(
              os.path.dirname(__file__),
              "..",
              "examples",
              "NIST_Gauss2.dat",
          )
      ).T
      model = (
          GaussianModel(prefix="g1_")
          + GaussianModel(prefix="g2_")
          + ExponentialModel(prefix="bkg_")
      )
  
      params = model.make_params(
          bkg_amplitude=100,
          bkg_decay=80,
          g1_amplitude=3000,
          g1_center=100,
          g1_sigma=10,
          g2_amplitude=3000,
          g2_center=150,
          g2_sigma=10,
      )
  
      result = model.fit(y, params, x=x)
      comps = result.eval_components(x=x)
      dely = result.eval_uncertainty(sigma=3)
  
      assert "g1_" in comps
      assert "g2_" in comps
      assert "bkg_" in comps
      assert dely.mean() > 0.8
      assert dely.mean() < 2.0
      assert result.dely_comps["g1_"].mean() > 0.5
      assert result.dely_comps["g1_"].mean() < 1.5
      assert result.dely_comps["g2_"].mean() > 0.5
      assert result.dely_comps["g2_"].mean() < 1.5
      assert result.dely_comps["bkg_"].mean() > 0.5
      assert result.dely_comps["bkg_"].mean() < 1.5
  
file_path: lmfit-py/tests/test_model_uncertainties.py
imports: import os
  import numpy
  from numpy.testing import assert_allclose
  from lmfit.lineshapes import gaussian
  from lmfit.models import ExponentialModel, GaussianModel, LinearModel
label_desc: Use image node_id 7 for calling a global function with example usage: test_component_uncertainties() without return types