code: def convert_word_dict_seq_to_text(
      word_dict_seq_list: List[Dict[str, float]]
  ) -> Tuple[List[str], str]:
      """
      Convert word_dict_seq_list into a list containing transcription (space seperated string) per each speaker.
  
      Args:
          word_dict_seq_list (list):
              List containing words and corresponding word timestamps in dictionary format.
  
              Example:
              >>> word_dict_seq_list = \
              >>> [{'word': 'right', 'start_time': 0.0, 'end_time': 0.04, 'speaker': 'speaker_0'},  
                   {'word': 'and', 'start_time': 0.64, 'end_time': 0.68, 'speaker': 'speaker_1'},
                     ...],
      
      Returns:
          spk_hypothesis (list):
              Dictionary containing the hypothesis transcript for each speaker. A list containing the sequence
              of words is assigned for each speaker.
  
              Example:
              >>> spk_hypothesis= ["hi how are you well that's nice", "i'm good yeah how is your sister"]
  
          mix_hypothesis (str):
              Hypothesis transcript from ASR output. This transcript has word sequence in temporal order.
  
              Example:
              >>> mix_hypothesis = "hi how are you i'm good well that's nice yeah how is your sister"
      """
      mix_hypothesis, per_spk_hyp_trans_dict = [], {}
      for word_dict in word_dict_seq_list:
          spk = word_dict["speaker"]
          if spk not in per_spk_hyp_trans_dict:
              per_spk_hyp_trans_dict[spk] = []
          per_spk_hyp_trans_dict[spk].append(word_dict["word"])
          mix_hypothesis.append(word_dict["word"])
  
      # Create a list containing string formatted transcript
      spk_hypothesis = [
          " ".join(word_list)
          for word_list in per_spk_hyp_trans_dict.values()
      ]
      mix_hypothesis = " ".join(mix_hypothesis)
      return spk_hypothesis, mix_hypothesis
  
imports: import copy
  import csv
  import json
  import os
  from collections import OrderedDict
  from datetime import datetime
  from typing import Dict, List, Tuple
  import numpy
  from nemo.collections.asr.metrics.der import concat_perm_word_error_rate
  from nemo.collections.asr.metrics.wer import word_error_rate
  from nemo.collections.asr.models import ClusteringDiarizer
  from nemo.collections.asr.parts.utils.speaker_utils import audio_rttm_map, get_uniqname_from_filepath, labels_to_rttmfile, rttm_to_labels, write_rttm2manifest
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling a global function with example usage: convert_word_dict_seq_to_text(word_dict_seq_list) and returns: spk_hypothesis,  mix_hypothesis