code: def test_freeze_and_unfreeze_all_parameters(self):
      samples = np.array([0.25, 0.0, 0.1, -0.4], dtype=np.float32)
      sample_rate = 44100
  
      for _ in range(30):
          augmenter = OneOf(
              [
                  Gain(p=1.0),
                  PolarityInversion(p=1.0),
              ]
          )
          perturbed_samples1 = augmenter(
              samples=samples, sample_rate=sample_rate
          )
          augmenter.freeze_parameters()
          for transform in augmenter.transforms:
              assert transform.are_parameters_frozen
          perturbed_samples2 = augmenter(
              samples=samples, sample_rate=sample_rate
          )
  
          assert_array_equal(perturbed_samples1, perturbed_samples2)
  
          augmenter.unfreeze_parameters()
          for transform in augmenter.transforms:
              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 2 for calling the TestOneOf obj's underlying member method code with example usage: obj.test_freeze_and_unfreeze_all_parameters() without return types