code: def write_new_lab(out_lab_file, dur, voice_part_new, utt_array):
      # set length of voice_part
      nvn = len(voice_part_new)  # Number of New Voice part
  
      with open(out_lab_file, mode="w") as f:
          for i in range(nvn):
              if i == 0:
                  # Head
                  f.write(
                      "%.6f\t%.6f\t%s\n"
                      % (0, np.float(voice_part_new[i][0]), "#")
                  )
              else:
                  # Body of silence
                  f.write(
                      "%.6f\t%.6f\t%s\n"
                      % (
                          np.float(voice_part_new[i - 1][1]),
                          np.float(voice_part_new[i][0]),
                          "#",
                      )
                  )
              # Body of voice
              f.write(
                  "%.6f\t%.6f\t%s\n"
                  % (
                      np.float(voice_part_new[i][0]),
                      np.float(voice_part_new[i][1]),
                      utt_array[i],
                  )
              )
          # Tail
          f.write(
              "%.6f\t%.6f\t%s\n"
              % (np.float(voice_part_new[i][1]), dur, "#")
          )
  
file_path: espnet/egs/blizzard17/tts1/local/make_lab_wo_sil.py
imports: import csv
  import sys
  import librosa
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: write_new_lab(out_lab_file, dur, voice_part_new, utt_array) without return types