code: def gauss_dataset(params, i, x):
      """Calculate Gaussian lineshape from parameters for data set."""
      amp = params[f"amp_{i+1}"]
      cen = params[f"cen_{i+1}"]
      sig = params[f"sig_{i+1}"]
      return gauss(x, amp, cen, sig)
  
imports: import matplotlib.pyplot
  import numpy
  from lmfit import Parameters, minimize, report_fit
label_desc: Use image node_id 2 for calling a global function with example usage: gauss_dataset(params, i, x) and returns: gauss