code: def diffev(cost, x0, full=1, disp=1, monitor=0):
      """change default behavior for selected optimizers"""
      from mystic.solvers import diffev as solver
      from mystic.monitors import Monitor, VerboseMonitor
  
      if monitor:
          mon = VerboseMonitor(10)
      else:
          mon = Monitor()
      npop = 10 * len(x0)
      solved = solver(
          cost,
          x0,
          npop=npop,
          full_output=full,
          disp=disp,
          itermon=mon,
          handler=0,
      )
      # return: solution, energy, generations, fevals
      return solved[0], solved[1], solved[2], solved[3]
  
label_desc: Use image node_id 2 for calling a global function with example usage: diffev(cost, x0, full, disp, monitor) and returns: solved,  solved,  solved,  solved