code: def test_sumt1():
      def costfunc(x):
          x1 = x[0]
          x2 = x[1]
          return (
              x1**4
              - 2.0 * x1**2 * x2
              + x1**2
              + x1 * x2**2
              - 2.0 * x1
              + 4.0
          )
  
      constraints_string = """
      x1**2 + x2**2 - 2. = 0.
      0.25*x1**2 + 0.75*x2**2 - 1. <= 0.
          """
  
      ndim = 2
      x0 = [3.0, 2.0]
      npop = 25
      # print("constraints equations:%s" % (constraints_string.rstrip(),))
  
      from mystic.solvers import DifferentialEvolutionSolver
      from mystic.solvers import NelderMeadSimplexSolver
      from mystic.termination import VTR
  
      # solver = DifferentialEvolutionSolver(ndim, npop)
      solver = NelderMeadSimplexSolver(ndim)
      solver.SetInitialPoints(x0)
      term = VTR()
      # FIXME: sumt, issolution no longer take constraints strings
      end_solver = sumt(
          constraints_string, ndim, costfunc, solver, term, disp=True
      )
      soln = end_solver.Solution()
      assert issolution(constraints_string, soln)
  
file_path: mystic/mystic/tests/test_symbolic_basic.py
imports: from numpy import asarray
  from mystic.constraints import issolution, as_constraint, solve
  from mystic.coupler import inner
  from mystic.symbolic import *
  from mystic.tools import random_seed
  from mystic.math import almostEqual
label_desc: Use image node_id 1 for calling a global function with example usage: test_sumt1() and returns: unknown