code: def test_get_nonspeech_segments(self, test_data_dir):
      (
          rttm_file,
          speech_segments,
          silence_segments,
      ) = get_simple_rttm_with_silence(test_data_dir + "/test3.rttm")
      speech_segments_new = load_speech_segments_from_rttm(rttm_file)
      silence_segments_new = get_nonspeech_segments(speech_segments_new)
      assert silence_segments_new == silence_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 4 for calling the TestVADUtils obj's underlying member method code with example usage: obj.test_get_nonspeech_segments(test_data_dir) without return types