code: def gauss_dataset(params, i, x):
      """calc gaussian from params for data set i
      using simple, hardwired naming convention"""
      amp = params[f"amp_{i+1}"]
      cen = params[f"cen_{i+1}"]
      sig = params[f"sig_{i+1}"]
      return gaussian(x, amp, cen, sig)
  
imports: import numpy
  from lmfit import Parameters, minimize
  from lmfit.lineshapes import gaussian
label_desc: Use image node_id 1 for calling a global function with example usage: gauss_dataset(params, i, x) and returns: gaussian