code: def fix_missed_unary(
      gold_transition,
      pred_transition,
      gold_sequence,
      gold_index,
      root_labels,
  ):
      """
      Fix a missed unary which is followed by an otherwise correct transition
  
      (also handles multiple missed unary transitions)
      """
      if gold_transition == pred_transition:
          return None
  
      cur_index = gold_index
      cur_index = advance_past_unaries(gold_sequence, cur_index)
      if gold_sequence[cur_index] == pred_transition:
          return gold_sequence[:gold_index] + gold_sequence[cur_index:]
      return None
  
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 8 for calling a global function with example usage: fix_missed_unary(gold_transition, pred_transition, gold_sequence, gold_index, root_labels) and returns: None, None, unknown