code: def process_remained_pred_trigger(trigger_pred):
      raw_labels = ["O"] * len(trigger_pred)
      trigger_labels_list = []
      trigger_label = raw_labels
      for idx, label in enumerate(trigger_pred):
          if label == "O":
              if idx != 0 and trigger_pred[idx - 1] != "O":
                  trigger_labels_list.append(trigger_label)
              trigger_label = raw_labels
          else:
              trigger_label[idx] = label
      return trigger_labels_list
  
file_path: DeepKE/src/deepke/event_extraction/standard/bertcrf/utils_ee.py
imports: import hashlib
  from transformers import XLMRobertaTokenizer, BertTokenizer, RobertaTokenizer
  from torch.nn.utils.rnn import pad_sequence
label_desc: Use image node_id 7 for calling a global function with example usage: process_remained_pred_trigger(trigger_pred) and returns: trigger_labels_list