code: def get_seg_info_from_ctm_line(
      ctm_list: List[str],
      output_precision: int,
      speaker_index: int = 7,
      start_time_index: int = 2,
      duration_index: int = 3,
  ):
      """
      Get time stamp information and speaker labels from CTM lines.
      This is following CTM format appeared in `Rich Transcription Meeting Eval Plan: RT09` document.
  
      Args:
          ctm_list (list): List containing CTM items. e.g.: ['sw02001-A', '1', '0.000', '0.200', 'hello', '0.98', 'lex', 'speaker3']
          output_precision (int): Precision for CTM outputs in integer.
  
      Returns:
          start (float): Start time of the segment.
          end (float): End time of the segment.
          speaker_id (str): Speaker ID of the segment.
      """
      speaker_id = ctm_list[speaker_index]
      start = float(ctm_list[start_time_index])
      end = float(ctm_list[start_time_index]) + float(
          ctm_list[duration_index]
      )
      start = round(start, output_precision)
      end = round(end, output_precision)
      return start, end, speaker_id
  
file_path: NeMo/scripts/speaker_tasks/create_alignment_manifest.py
imports: import argparse
  import os
  import shutil
  from pathlib import Path
  from typing import List
  from nemo.collections.asr.parts.utils.manifest_utils import get_ctm_line, read_manifest, write_ctm, write_manifest
  from nemo.utils import logging
label_desc: Use image node_id 1 for calling a global function with example usage: get_seg_info_from_ctm_line(ctm_list, output_precision, speaker_index, start_time_index, duration_index) and returns: start,  end,  speaker_id