code: def merge_punct_tok(
      merged_punct_sentence,
      last_merged_punct_index,
      punct_text,
      is_traverse,
  ):
      # merge the text of the punct tok
      if is_traverse:
          merged_punct_sentence[last_merged_punct_index]["text"] = (
              punct_text
              + merged_punct_sentence[last_merged_punct_index]["text"]
          )
      else:
          merged_punct_sentence[last_merged_punct_index]["text"] = (
              merged_punct_sentence[last_merged_punct_index]["text"]
              + punct_text
          )
  
imports: import json
  from nlp_architect.utils.io import validate
label_desc: Use image node_id 1 for calling a global function with example usage: merge_punct_tok(merged_punct_sentence, last_merged_punct_index, punct_text, is_traverse) without return types