code: def test_noise_rms_parameter(self):
      np.random.seed(80085)
      random.seed("ling")
      sample_rate = 44100
      samples = np.sin(
          np.linspace(0, 440 * 2 * np.pi, 9 * sample_rate)
      ).astype(np.float32)
      rms_before = calculate_rms(samples)
      augmenter_relative_to_whole_input = AddShortNoises(
          sounds_path=os.path.join(DEMO_DIR, "short_noises"),
          min_time_between_sounds=2.0,
          max_time_between_sounds=8.0,
          min_snr_db=5,
          max_snr_db=5,
          noise_rms="relative_to_whole_input",
          p=1.0,
      )
  
      augmenter_absolute = AddShortNoises(
          sounds_path=os.path.join(DEMO_DIR, "short_noises"),
          min_time_between_sounds=2.0,
          max_time_between_sounds=8.0,
          noise_rms="absolute",
          p=1.0,
      )
  
      samples_out_absolute = augmenter_absolute(
          samples=samples, sample_rate=sample_rate
      )
      samples_out_relative_to_whole_input = (
          augmenter_relative_to_whole_input(
              samples=samples, sample_rate=sample_rate
          )
      )
      assert samples_out_absolute.dtype == np.float32
      assert samples_out_absolute.shape == samples.shape
      rms_after_relative_to_whole_path = calculate_rms(
          samples_out_relative_to_whole_input
      )
      rms_after_absolute = calculate_rms(samples_out_absolute)
      assert rms_after_absolute > rms_before
      assert rms_after_relative_to_whole_path > rms_before
  
imports: import json
  import os
  import pickle
  import random
  import numpy
  import pytest
  from numpy.testing import assert_array_equal, assert_array_almost_equal
  from audiomentations import AddShortNoises, PolarityInversion
  from audiomentations.core.transforms_interface import MultichannelAudioNotSupportedException
  from audiomentations.core.utils import calculate_rms
  from demo.demo import DEMO_DIR
label_desc: Use image node_id 11 for calling the TestAddShortNoises obj's underlying member method code with example usage: obj.test_noise_rms_parameter() without return types