code: def test_peak_normalize_if_too_loud(self):
      samples = np.array(
          [
              [0.9, 0.5, -0.25, -0.125, 0.0],
              [0.95, 0.5, -0.25, -0.125, 0.0],
          ],
          dtype=np.float32,
      )
      sample_rate = 16000
      augmenter = PostGain(
          Gain(min_gain_db=0.0, max_gain_db=0.0, p=1.0),
          method="peak_normalize_if_too_loud",
      )
  
      processed_samples = augmenter(
          samples=samples, sample_rate=sample_rate
      )
      assert_array_equal(processed_samples, samples)
      assert processed_samples.dtype == np.float32
  
      samples_too_loud = np.array(
          [
              [0.9, 0.5, -0.25, -0.125, 0.0],
              [1.2, 0.5, -0.25, -0.125, 0.0],
          ],
          dtype=np.float32,
      )
      processed_samples = augmenter(
          samples=samples_too_loud, sample_rate=sample_rate
      )
      assert_array_equal(processed_samples, samples_too_loud / 1.2)
      assert processed_samples.dtype == np.float32
  
file_path: audiomentations/tests/test_post_gain.py
imports: import numpy
  import pyloudnorm
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from audiomentations import Gain
  from audiomentations.core.post_gain import PostGain
  from audiomentations.core.utils import calculate_rms, get_max_abs_amplitude
label_desc: Use image node_id 4 for calling the TestPostGain obj's underlying member method code with example usage: obj.test_peak_normalize_if_too_loud() without return types