code: def test_cc(termination, seed=None):
      term = termination(mask=seed)
      collapse = ct.collapsed(term(solver, True))
      mask = list(collapse.values())[-1]
      # full results as mask
      _term = termination(mask=mask)
      assert not ct.collapsed(_term(solver, True))
      # update mask with full results
      _term = ma.update_mask(term, collapse)
      assert mask == ma.get_mask(_term)
      assert not ct.collapsed(_term(solver, True))
  
imports: import mystic.collapse
  import mystic.mask
  import mystic
  import os
  import mystic.termination
  from mystic.solvers import DifferentialEvolutionSolver
label_desc: Use image node_id 1 for calling a global function with example usage: test_cc(termination, seed) without return types