code: def test_specgram_complex_equivalent(self, mode, conv):
      specc, freqspecc, tc = 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="complex",
      )
      specm, freqspecm, tm = 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(freqspecc, freqspecm)
      assert_array_equal(tc, tm)
      assert_allclose(conv(specc), specm, atol=1e-06)
  
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 21 for calling the TestSpectral obj's underlying member method code with example usage: obj.test_specgram_complex_equivalent(mode, conv) without return types