docstr: Test that mlab.specgram without mode and with mode 'default' and 'psd'
  are all the same.
docstr_tok: ["Test","that","mlab.specgram","without","mode","and","with","mode","'default","'","and","'psd'","are","all","the","same","."]
code: def test_specgram_auto_default_psd_equal(self, mode):
      """
      Test that mlab.specgram without mode and with mode 'default' and 'psd'
      are all the same.
      """
      speca, freqspeca, ta = mlab.specgram(
          x=self.y,
          NFFT=self.NFFT_specgram,
          Fs=self.Fs,
          noverlap=self.nover_specgram,
          pad_to=self.pad_to_specgram,
          sides=self.sides,
      )
      specb, freqspecb, tb = mlab.specgram(
          x=self.y,
          NFFT=self.NFFT_specgram,
          Fs=self.Fs,
          noverlap=self.nover_specgram,
          pad_to=self.pad_to_specgram,
          sides=self.sides,
          mode=mode,
      )
      assert_array_equal(speca, specb)
      assert_array_equal(freqspeca, freqspecb)
      assert_array_equal(ta, tb)
  
imports: from numpy.testing import assert_allclose, assert_almost_equal, assert_array_equal, assert_array_almost_equal_nulp
  import numpy
  import pytest
  from matplotlib import mlab
label_desc: Use image node_id 20 for calling the TestSpectral obj's underlying member method code with example usage: obj.test_specgram_auto_default_psd_equal(mode) without return types