code: def constrained_integers(index=()):
      "check integer constraint is properly applied"
  
      def func(rv):
          return all(
              int(j) == j for i, j in enumerate(rv) if i in index
          )
  
      return func
  
file_path: mystic/examples3/misc.py
imports: from mystic.solvers import DifferentialEvolutionSolver2
  from mystic.monitors import VerboseMonitor, Monitor
  from mystic.termination import ChangeOverGeneration
  from mystic.bounds import Bounds, MeasureBounds
  from mystic.math.discrete import product_measure
  from mystic.math import almostEqual
  from mystic.constraints import and_, integers
  from mystic.coupler import outer, additive
label_desc: Use image node_id 7 for calling a global function with example usage: constrained_integers(index) and returns: func, all