code: def error2d(myCF, sol, cx, cy):
      from scipy.optimize import fmin
  
      # This is the center-point
      x0 = [sol[0], sol[1], sol[2]]
  
      def curry(x):
          return myCF([x[0], x[1], x[2], cx, cy])
  
      sol = fmin(curry, x0)
      print(sol)
  
file_path: mystic/_examples/test_br8.py
imports: from numpy import *
  from scipy.integrate import romberg
  from mystic.solvers import DifferentialEvolutionSolver2
  from mystic.termination import ChangeOverGeneration, VTR
  from mystic.tools import getch, random_seed
  from mystic.monitors import VerboseMonitor
  from mystic.models.br8 import decay
  from mystic.models.br8 import cost
  from mystic.models.br8 import data
label_desc: Use image node_id 4 for calling a global function with example usage: error2d(myCF, sol, cx, cy) and returns: myCF