code: def test__window(n, window_name):
      window = getattr(scipy.signal.windows, window_name)
  
      wdec = librosa.filters.__float_window(window)
  
      if n == int(n):
          n = int(n)
          assert np.allclose(wdec(n), window(n))
      else:
          wf = wdec(n)
          fn = int(np.floor(n))
          assert not np.any(wf[fn:])
  
imports: import os
  from contextlib import nullcontext
  import warnings
  import glob
  import numpy
  import scipy.io
  import scipy.signal
  from typing import Any, ContextManager
  import pytest
  import librosa
label_desc: Use image node_id 13 for calling a global function with example usage: test__window(n, window_name) without return types