code: def merge(sent_dict):
      # Merge sentence parts in order
      sent_order = ["sent1", "ent1", "sent2", "ent2", "sent3"]
      q = deque([[sent] for sent in sent_dict[sent_order[0]]])
      curr_idx = 1
      while curr_idx < len(sent_order):
          curr_len = len(q)
          for _ in range(curr_len):
              prev_sents = q.pop()
              for postfix in sent_dict[sent_order[curr_idx]]:
                  q.appendleft(prev_sents + [postfix])
          curr_idx += 1
      return list(q)
  
file_path: DeepKE/example/re/few-shot/DA/DA.py
imports: import os
  import json
  from collections import deque
  from tqdm import tqdm
  import argparse
  import nlpaug.augmenter.char
  import nlpaug.augmenter.word
  import nlpaug.augmenter.sentence
  import nlpaug.flow
  from nlpaug.util import Action
  from nlpcda import Similarword
label_desc: Use image node_id 2 for calling a global function with example usage: merge(sent_dict) and returns: list