code: def test_same_rms(self):
      samples = np.array(
          [1.0, 0.5, -0.25, -0.125, 0.0], dtype=np.float32
      )
      sample_rate = 16000
  
      augment = PostGain(
          Gain(min_gain_db=-6, max_gain_db=-6, p=1.0), method="same_rms"
      )
      processed_samples = augment(
          samples=samples, sample_rate=sample_rate
      )
      assert_almost_equal(
          calculate_rms(processed_samples),
          calculate_rms(samples),
      )
      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 1 for calling the TestPostGain obj's underlying member method code with example usage: obj.test_same_rms() without return types