code: def test_dpss_windows():
      """Test computation of DPSS windows."""
      ni = pytest.importorskip("nitime")
  
      N = 1000
      half_nbw = 4
      Kmax = int(2 * half_nbw)
  
      dpss, eigs = dpss_windows(N, half_nbw, Kmax, low_bias=False)
      with _record_warnings():  # conversions
          dpss_ni, eigs_ni = ni.algorithms.dpss_windows(
              N, half_nbw, Kmax
          )
  
      assert_array_almost_equal(dpss, dpss_ni)
      assert_array_almost_equal(eigs, eigs_ni)
  
      dpss, eigs = dpss_windows(N, half_nbw, Kmax, low_bias=False)
      with _record_warnings():  # conversions
          dpss_ni, eigs_ni = ni.algorithms.dpss_windows(
              N, half_nbw, Kmax
          )
  
      assert_array_almost_equal(dpss, dpss_ni)
      assert_array_almost_equal(eigs, eigs_ni)
  
file_path: mne-python/mne/time_frequency/tests/test_multitaper.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from mne.time_frequency import psd_array_multitaper
  from mne.time_frequency.multitaper import dpss_windows
  from mne.utils import _record_warnings
label_desc: Use image node_id 1 for calling a global function with example usage: test_dpss_windows() without return types