code: def prior(self, samples, funcs, func_params):
      ret = np.ones(CurveModel.NUM_INSTANCE)
      for i in range(CurveModel.NUM_INSTANCE):
          for j in range(len(funcs)):
              if not samples[i][j] > 0:
                  ret[i] = 0
          if self.f_comb(
              1, samples[i], funcs, func_params
          ) >= self.f_comb(
              self.iterations, samples[i], funcs, func_params
          ):
              ret[i] = 0
      return ret
  
imports: import scipy
  import logging
  import numpy
  import time
  from scipy import optimize
label_desc: Use image node_id 9 for calling the CurveModel obj's underlying member method code with example usage: obj.prior(samples, funcs, func_params) and returns: ret