code: def f_comb(self, pos, sample, funcs, func_params):
      ret = 0
      for idx, (func_name, func) in enumerate(funcs.items()):
          y = func(pos, *func_params[func_name])
          ret += sample[idx] * y
      return ret
  
imports: import scipy
  import logging
  import numpy
  import time
  from scipy import optimize
label_desc: Use image node_id 5 for calling the CurveModel obj's underlying member method code with example usage: obj.f_comb(pos, sample, funcs, func_params) and returns: ret