code: def obj_func(params, x, data):
      """decaying sine wave, subtract data"""
      amp = params["amp"].value
      shift = params["shift"].value
      omega = params["omega"].value
      decay = params["decay"].value
      model = amp * np.sin(x * omega + shift) * np.exp(-x * x * decay)
      return model - data
  
file_path: lmfit-py/asv_benchmarking/benchmarks/benchmarks.py
imports: from copy import deepcopy
  import numpy
  from lmfit import Minimizer, Parameters, conf_interval, minimize
label_desc: Use image node_id 1 for calling a global function with example usage: obj_func(params, x, data) and returns: unknown