code: def test_same_lufs(self):
      samples = np.random.uniform(
          low=-0.5, high=0.5, size=(2, 8000)
      ).astype(np.float32)
      sample_rate = 16000
  
      augment = PostGain(
          Gain(min_gain_db=60, max_gain_db=60, p=1.0),
          method="same_lufs",
      )
      processed_samples = augment(
          samples=samples, sample_rate=sample_rate
      )
  
      meter = pyloudnorm.Meter(sample_rate)  # create BS.1770 meter
      lufs_before = meter.integrated_loudness(samples.transpose())
      lufs_after = meter.integrated_loudness(
          processed_samples.transpose()
      )
      assert_almost_equal(lufs_after, lufs_before, decimal=6)
      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 2 for calling the TestPostGain obj's underlying member method code with example usage: obj.test_same_lufs() without return types