code: def test_add_noises_with_same_level(self):
      dummy_audio = np.random.randint(1, 5, 250000)
      transform_same_noise_level = AddShortNoises(
          sounds_path=os.path.join(DEMO_DIR, "short_noises"),
          min_snr_db=15,
          max_snr_db=30,
          noise_rms="relative",
          add_all_noises_with_same_level=True,
          min_time_between_sounds=0.5,
          max_time_between_sounds=1,
          p=1,
      )
  
      transform_different_noise_level = AddShortNoises(
          sounds_path=os.path.join(DEMO_DIR, "short_noises"),
          min_snr_db=15,
          max_snr_db=30,
          add_all_noises_with_same_level=False,
          min_time_between_sounds=0.5,
          max_time_between_sounds=1,
          p=1,
      )
  
      for i in range(3):
          transform_same_noise_level.randomize_parameters(
              dummy_audio, sample_rate=44100
          )
          sounds = transform_same_noise_level.parameters["sounds"]
          snr_sounds_same_level = [
              sounds[j]["snr_db"] for j in range(len(sounds))
          ]
          transform_different_noise_level.randomize_parameters(
              dummy_audio, sample_rate=44100
          )
          sounds = transform_different_noise_level.parameters["sounds"]
          snr_sounds_different_level = [
              sounds[j]["snr_db"] for j in range(len(sounds))
          ]
  
          assert len(set(snr_sounds_same_level)) == 1
          assert len(set(snr_sounds_different_level)) > 1
  
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 13 for calling the TestAddShortNoises obj's underlying member method code with example usage: obj.test_add_noises_with_same_level() without return types