code: def test_write_with_replaygain(self):
      outfile = decode_to_disk(loud_rg_flac_file, tmp_suffix=".raw")
      outfile_rg = decode_to_disk(
          loud_rg_flac_file, tmp_suffix=".raw", replaygain_mode="track"
      )
      with open(outfile, "rb") as f:
          data = np.frombuffer(f.read(), dtype=np.int16).reshape(
              (-1, 2)
          )
          orig_spl = Signal(data).spl()
      with open(outfile_rg, "rb") as f:
          data = np.frombuffer(f.read(), dtype=np.int16).reshape(
              (-1, 2)
          )
          adjusted_spl = Signal(data).spl()
      self.assertGreater(orig_spl, adjusted_spl)
  
imports: from __future__ import absolute_import, division, print_function
  import io
  import unittest
  from os.path import join
  from madmom.io.audio import *
  from .None import AUDIO_PATH, DATA_PATH
label_desc: Use image node_id 2 for calling the TestDecodeToDisk obj's underlying member method code with example usage: obj.test_write_with_replaygain() without return types