code: def test_calculate_rms_without_silence(self):
      sample_rate = 48000
      samples_in = np.zeros(int(2.0022 * sample_rate))
      samples_in[0:sample_rate] = 0.4 * np.ones(sample_rate)
      rms_before = calculate_rms(samples_in)
      rms_after = calculate_rms_without_silence(samples_in, sample_rate)
      assert rms_after > rms_before
      assert rms_after == pytest.approx(0.4)
  
      # Check that the function works if the input is shorter than a window (25 ms)
      rms_short = calculate_rms_without_silence(
          samples_in[0 : int(0.015 * sample_rate)], sample_rate
      )
      assert rms_short == pytest.approx(0.4)
  
file_path: audiomentations/tests/test_utils.py
imports: import os
  import numpy
  import pytest
  from audiomentations.core.utils import calculate_desired_noise_rms, convert_decibels_to_amplitude_ratio, find_audio_files_in_paths, calculate_rms, calculate_rms_without_silence
  from demo.demo import DEMO_DIR
label_desc: Use image node_id 8 for calling the TestUtils obj's underlying member method code with example usage: obj.test_calculate_rms_without_silence() without return types