code: def test_convert_labels_to_speech_segments(self, test_data_dir):
      rttm_file, speech_segments = get_simple_rttm_without_overlap(
          test_data_dir + "/test5.rttm"
      )
      speech_segments_new = load_speech_segments_from_rttm(rttm_file)
      frame_labels = get_frame_labels(
          speech_segments_new, 0.02, 0.0, 3.0, as_str=False
      )
      speech_segments_new = convert_labels_to_speech_segments(
          frame_labels, 0.02
      )
      assert speech_segments_new == speech_segments
  
file_path: NeMo/tests/collections/asr/utils/test_vad_utils.py
imports: import numpy
  import pytest
  from pyannote.core import Annotation, Segment
  from nemo.collections.asr.parts.utils.vad_utils import align_labels_to_frames, convert_labels_to_speech_segments, frame_vad_construct_pyannote_object_per_file, get_frame_labels, get_nonspeech_segments, load_speech_overlap_segments_from_rttm, load_speech_segments_from_rttm, read_rttm_as_pyannote_object
label_desc: Use image node_id 6 for calling the TestVADUtils obj's underlying member method code with example usage: obj.test_convert_labels_to_speech_segments(test_data_dir) without return types