code: def main(servers, ncpus):
      from mystic.solvers import DifferentialEvolutionSolver2
      from pathos.pools import ParallelPool as Pool
  
      solver = DifferentialEvolutionSolver2(ND, NP)
      solver.SetMapper(Pool(ncpus, servers=servers).map)
      solver.SetRandomInitialPoints(min=[-100.0] * ND, max=[100.0] * ND)
      solver.SetEvaluationLimits(generations=MAX_GENERATIONS)
      solver.SetGenerationMonitor(VerboseMonitor(30))
      solver.enable_signal_handler()
  
      strategy = Best1Exp
      # strategy = Best1Bin
  
      solver.Solve(
          ChebyshevCost,
          termination=VTR(0.01),
          strategy=strategy,
          CrossProbability=1.0,
          ScalingFactor=0.9,
          sigint_callback=plot_solution,
      )
  
      solution = solver.Solution()
  
      return solution
  
imports: from test_ffit import *
  from mystic.math import poly1d
label_desc: Use image node_id 2 for calling a global function with example usage: main(servers, ncpus) and returns: solution