code: def merge_punctuation(sentence):
      merged_punct_sentence = []
      tmp_punct_text = None
      punct_text = None
      last_merged_punct_index = -1
      for tok_index, token in enumerate(sentence):
          if token["rel"] == "punct":
              punct_text = token["text"]
              if (
                  tok_index < 1
              ):  # this is the first tok - append to the next token
                  tmp_punct_text = punct_text
              else:  # append to the previous token
                  merge_punct_tok(
                      merged_punct_sentence,
                      last_merged_punct_index,
                      punct_text,
                      False,
                  )
          else:
              merged_punct_sentence.append(token)
              last_merged_punct_index = last_merged_punct_index + 1
              if tmp_punct_text is not None:
                  merge_punct_tok(
                      merged_punct_sentence,
                      last_merged_punct_index,
                      punct_text,
                      True,
                  )
                  tmp_punct_text = None
      return merged_punct_sentence
  
imports: import json
  from nlp_architect.utils.io import validate
label_desc: Use image node_id 5 for calling a global function with example usage: merge_punctuation(sentence) and returns: merged_punct_sentence