code: def write_labels_for_audacity(
      out_path: str,
      segments: List[Tuple[float]],
      text_no_preprocessing: str,
  ):
      """
      Write the segmentation output to a file ready to be imported in Audacity with the unprocessed text as labels
  
      out_path: Path to output file
      segments: Segments include start, end and alignment score
      text_no_preprocessing: Reference txt without any pre-processing
      """
      # Audacity uses tab to separate each field (start end text)
      TAB_CHAR = "	"
  
      # Uses char-wise alignments to get utterance-wise alignments and writes them into the given file
      with open(str(out_path), "w") as outfile:
          for i, segment in enumerate(segments):
              if isinstance(segment, list):
                  for j, x in enumerate(segment):
                      start, end, _ = x
                      outfile.write(
                          f"{start}{TAB_CHAR}{end}{TAB_CHAR}{text_no_preprocessing[i][j]} \n"
                      )
              else:
                  start, end, _ = segment
                  outfile.write(
                      f"{start}{TAB_CHAR}{end}{TAB_CHAR}{text_no_preprocessing[i]} \n"
                  )
  
file_path: NeMo/tools/ctc_segmentation/scripts/utils.py
imports: import logging
  import logging.handlers
  import math
  import os
  import sys
  from pathlib import PosixPath
  from typing import List, Tuple, Union
  import ctc_segmentation
  import numpy
  from tqdm import tqdm
  from nemo.collections.common.tokenizers.sentencepiece_tokenizer import SentencePieceTokenizer
label_desc: Use image node_id 8 for calling a global function with example usage: write_labels_for_audacity(out_path, segments, text_no_preprocessing) without return types