code: def cost(x):
      kx = constrain(x)
      y = objective(kx)
      mon(kx, y)
      return y
  
imports: import mystic
  import mystic.symbolic
  import scipy.optimize
label_desc: Use image node_id 2 for calling a global function with example usage: cost(x) and returns: y