code: def run_once(x0, x1):
      simplex = Monitor()
      xinit = [x0, x1]
  
      solver = fmin(len(xinit))
      solver.SetInitialPoints(xinit)
      solver.SetGenerationMonitor(simplex)
      solver.Solve(rosen, termination=CRT())
      sol = solver.Solution()
  
      for x in simplex.x:
          sam.putarray("x", x)
          sam.eval("plot(x([1,2,3,1],1),x([1,2,3,1],2),'w-')")
  
imports: import sam
  from test_rosenbrock import *
  from mystic.solvers import NelderMeadSimplexSolver
  from mystic.termination import CandidateRelativeTolerance
  from mystic.monitors import Monitor
  from mystic.tools import getch
label_desc: Use image node_id 2 for calling a global function with example usage: run_once(x0, x1) without return types