code: def residual(pars, x, data):
      model = gaussian(
          x, pars["amp_g"], pars["cen_g"], pars["wid_g"]
      ) + lorentzian(x, pars["amp_l"], pars["cen_l"], pars["wid_l"])
      return model - data
  
imports: import matplotlib.pyplot
  import numpy
  from lmfit import Minimizer, create_params, report_fit
  from lmfit.lineshapes import gaussian, lorentzian
label_desc: Use image node_id 1 for calling a global function with example usage: residual(pars, x, data) and returns: unknown