code: def unpad_crf(returned_array, returned_mask, org_array, org_mask):
      out_array = org_array.clone().detach()
      out_array[org_mask] = returned_array[returned_mask]
      return out_array
  
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 5 for calling a global function with example usage: unpad_crf(returned_array, returned_mask, org_array, org_mask) and returns: out_array