code: def test05(terminate, func=lambda x: x[0], info=False, debug=False):
      from mystic.solvers import NelderMeadSimplexSolver as NM
  
      solver = NM(3)
      solver.SetRandomInitialPoints()
      solver.SetEvaluationLimits(8)
      solver.Solve(func, VTR())
      if debug:
          verbosity(solver)
      return terminate(solver, info)
  
file_path: mystic/mystic/tests/test_termination.py
imports: from mystic.termination import *
  from numpy import inf
label_desc: Use image node_id 7 for calling a global function with example usage: test05(terminate, func, info, debug) and returns: terminate