code: def advance_past_unaries(gold_sequence, cur_index):
      while (
          cur_index + 2 < len(gold_sequence)
          and isinstance(gold_sequence[cur_index], OpenConstituent)
          and isinstance(gold_sequence[cur_index + 1], CloseConstituent)
      ):
          cur_index += 2
      return cur_index
  
imports: from enum import Enum, auto
  from stanza.models.constituency.dynamic_oracle import DynamicOracle
  from stanza.models.constituency.parse_transitions import Shift, OpenConstituent, CloseConstituent
label_desc: Use image node_id 5 for calling a global function with example usage: advance_past_unaries(gold_sequence, cur_index) and returns: cur_index