class_docstr: AbstractSolver base class for mystic optimizers.
      
class_docstr_tok: ["AbstractSolver","base","class","for","mystic","optimizers","."]
docstr: get (initial state, resulting termination) for the give collapses
code: def __collapse_termination(self, collapses):
      """get (initial state, resulting termination) for the give collapses"""
      import mystic.termination as mt
      import mystic.mask as ma
  
      state = mt.state(self._termination)
      termination = ma.update_mask(self._termination, collapses)
      return state, termination
  
imports: import random
  import numpy
  from numpy import inf, shape, asarray, absolute, asfarray, seterr
  from mystic.tools import wrap_function, wrap_nested, wrap_reducer
  from mystic.tools import wrap_bounds, wrap_penalty, reduced
  from klepto import isvalid, validate
  from collections.abc import Callable
label_desc: Use image node_id 35 for calling the AbstractSolver obj's underlying member method code with example usage: obj.__collapse_termination(collapses) and returns: state,  termination