code: def test_fill_zeros(self):
      samples, sample_rate = load_sound_file(
          os.path.join(DEMO_DIR, "acoustic_guitar_0.wav"),
          sample_rate=None,
      )
      magnitude_spectrogram = librosa.feature.melspectrogram(
          y=samples, sr=sample_rate
      )
  
      mask_fraction = 0.05
      transform = SpecFrequencyMask(
          fill_mode="constant",
          fill_constant=0.0,
          min_mask_fraction=mask_fraction,
          max_mask_fraction=mask_fraction,
          p=1.0,
      )
      augmented_spectrogram = transform(magnitude_spectrogram)
  
      if DEBUG:
          plot_matrix(np.log(augmented_spectrogram))
  
      with np.testing.assert_raises(AssertionError):
          np.testing.assert_array_equal(
              augmented_spectrogram, magnitude_spectrogram
          )
  
      num_zeroed_frequencies = 0
      for i in range(augmented_spectrogram.shape[0]):
          if sum(augmented_spectrogram[i]) == 0.0:
              num_zeroed_frequencies += 1
  
      assert num_zeroed_frequencies == int(
          round(magnitude_spectrogram.shape[0] * mask_fraction)
      )
  
file_path: audiomentations/tests/test_spec_frequency_mask.py
imports: import os
  import librosa
  import numpy
  from audiomentations import SpecFrequencyMask
  from audiomentations.core.audio_loading_utils import load_sound_file
  from demo.demo import DEMO_DIR
  from .utils import plot_matrix
label_desc: Use image node_id 1 for calling the TestSpecFrequencyMask obj's underlying member method code with example usage: obj.test_fill_zeros() without return types