code: def test_one_of_spectrogram_magnitude_with_p_0(self):
      spectrogram = np.random.random((128, 128, 2))
      augmenter = OneOf(
          [
              SpecFrequencyMask(fill_mode="mean", p=1.0),
              SpecFrequencyMask(fill_mode="constant", p=1.0),
          ],
          p=0.0,
      )
  
      # Positional argument
      augmented_spectrogram = augmenter(spectrogram)
      assert augmented_spectrogram.shape == spectrogram.shape
      assert augmented_spectrogram.dtype == spectrogram.dtype
      assert_array_equal(augmented_spectrogram, spectrogram)
  
      # Keyword argument
      augmented_spectrogram = augmenter(
          magnitude_spectrogram=spectrogram
      )
      assert augmented_spectrogram.shape == spectrogram.shape
      assert augmented_spectrogram.dtype == spectrogram.dtype
      assert_array_equal(augmented_spectrogram, spectrogram)
  
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 7 for calling the TestOneOf obj's underlying member method code with example usage: obj.test_one_of_spectrogram_magnitude_with_p_0() without return types