code: def test_randomize_all_parameters_and_apply(self):
      samples = 1.0 / np.arange(1, 21, dtype=np.float32)
      sample_rate = 44100
  
      augmenter = OneOf(
          [
              AddBackgroundNoise(
                  sounds_path=os.path.join(
                      DEMO_DIR, "background_noises"
                  ),
                  min_snr_db=15,
                  max_snr_db=35,
                  p=1.0,
              ),
              ClippingDistortion(p=1.0),
              TimeMask(min_band_part=0.2, max_band_part=0.5, p=1.0),
              Shift(min_shift=0.5, max_shift=0.5, p=1.0),
          ]
      )
      augmenter.freeze_parameters()
      augmenter.randomize_parameters(
          samples=samples, sample_rate=sample_rate
      )
  
      parameters = [
          transform.parameters for transform in augmenter.transforms
      ]
  
      perturbed_samples1 = augmenter(
          samples=samples, sample_rate=sample_rate
      )
      perturbed_samples2 = augmenter(
          samples=samples, sample_rate=sample_rate
      )
  
      assert_array_equal(perturbed_samples1, perturbed_samples2)
  
      augmenter.unfreeze_parameters()
  
      for transform_parameters, transform in zip(
          parameters, augmenter.transforms
      ):
          assert transform_parameters == transform.parameters
          assert not transform.are_parameters_frozen
  
file_path: audiomentations/tests/test_one_of.py
imports: import os
  import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal
  from audiomentations import ClippingDistortion, AddBackgroundNoise, TimeMask, Shift, PolarityInversion, Gain, SpecFrequencyMask, OneOf
  from demo.demo import DEMO_DIR
label_desc: Use image node_id 4 for calling the TestOneOf obj's underlying member method code with example usage: obj.test_randomize_all_parameters_and_apply() without return types