code: def combine_type(input_file, output_file):
      for line in input_file:
          str2 = line.split("▁SEP")
          str1 = str2[1:-1]
          type_arr = []
          name_arr = []
          for k in str1:
              print(k)
              ent_type = k.split("▁FILL")[0]
              name = k.split("▁FILL")[1]
              ent_type = ent_type.replace(" ", "").replace("▁", "")
              type_arr.append(ent_type)
              name_arr.append(name)
          final_str = str2[0]
          for k in range(len(type_arr)):
              final_str = (
                  final_str
                  + "▁SEP "
                  + type_arr[k]
                  + " ▁FILL"
                  + name_arr[k]
              )
          final_str = final_str + "▁SEP"
          final_str = final_str + str2[-1]
          output_file.write(final_str)
  
label_desc: Use image node_id 1 for calling a global function with example usage: combine_type(input_file, output_file) without return types