code: def test_gain(self):
      samples = np.array(
          [1.0, 0.5, -0.25, -0.125, 0.0], dtype=np.float32
      )
      sample_rate = 16000
  
      augment = Gain(min_gain_db=-6, max_gain_db=-6, p=1.0)
      processed_samples = augment(
          samples=samples, sample_rate=sample_rate
      )
      assert_almost_equal(
          processed_samples,
          np.array(
              [0.5011872, 0.2505936, -0.1252968, -0.0626484, 0.0],
              dtype=np.float32,
          ),
      )
      assert processed_samples.dtype == np.float32
  
file_path: audiomentations/tests/test_gain.py
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from audiomentations import Gain
  from audiomentations.core.transforms_interface import WrongMultichannelAudioShape
label_desc: Use image node_id 1 for calling the TestGain obj's underlying member method code with example usage: obj.test_gain() without return types