code: def test_psd_windowarray_equal(self):
      win = mlab.window_hanning(np.ones(self.NFFT_density_real))
      speca, fspa = mlab.psd(
          x=self.y,
          NFFT=self.NFFT_density,
          Fs=self.Fs,
          noverlap=self.nover_density,
          pad_to=self.pad_to_density,
          sides=self.sides,
          window=win,
      )
      specb, fspb = mlab.psd(
          x=self.y,
          NFFT=self.NFFT_density,
          Fs=self.Fs,
          noverlap=self.nover_density,
          pad_to=self.pad_to_density,
          sides=self.sides,
      )
      assert_array_equal(fspa, fspb)
      assert_allclose(speca, specb, atol=1e-08)
  
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 22 for calling the TestSpectral obj's underlying member method code with example usage: obj.test_psd_windowarray_equal() without return types