code: def _simplify_one_subterm(subterms):
      # We simplify greedily from left to right.
      # Returns True if succeeded, False otherwise
      for short_i, short_subterm in enumerate(subterms):
          for long_i, long_subterm in enumerate(
              subterms[short_i + 1 :]
          ):
              if long_subterm.can_absorb(short_subterm):
                  new_subterm = long_subterm.absorb(short_subterm)
                  subterms[short_i + 1 + long_i] = new_subterm
                  subterms.pop(short_i)
                  return True
      return False
  
imports: from __future__ import print_function
  from patsy.util import no_pickling
label_desc: Use image node_id 5 for calling a global function with example usage: _simplify_one_subterm(subterms) and returns: False, True