code: def cost_function(params):
      m0 = ForwardMogiFactory(params[0:4])
      m1 = ForwardMogiFactory(params[4:])
      zdisp = filter_for_zdisp(m0(stations) + m1(stations))
      x = zdisp - data_z
      return 100000.0 * numpy.sum(real((conjugate(x) * x)))
  
imports: from test_mogi import *
label_desc: Use image node_id 1 for calling a global function with example usage: cost_function(params) and returns: unknown