class_docstr: Different author, different style, different tests...
class_docstr_tok: ["Different","author",",","different","style",",","different","tests","..."]
code: def test_bandstop_multi(self):
      width = 0.04
      ntaps, beta = kaiserord(120, width)
      kwargs = dict(
          cutoff=[0.2, 0.5, 0.8], window=("kaiser", beta), scale=False
      )
      taps = firwin(ntaps, **kwargs)
  
      # Check the symmetry of taps.
      assert_array_almost_equal(
          taps[: ntaps // 2], taps[ntaps : ntaps - ntaps // 2 - 1 : -1]
      )
  
      # Check the gain at a few samples where we know it should be approximately 0 or 1.
      freq_samples = np.array(
          [
              0.0,
              0.1,
              0.2 - width / 2,
              0.2 + width / 2,
              0.35,
              0.5 - width / 2,
              0.5 + width / 2,
              0.65,
              0.8 - width / 2,
              0.8 + width / 2,
              0.9,
              1.0,
          ]
      )
      freqs, response = freqz(taps, worN=np.pi * freq_samples)
      assert_array_almost_equal(
          np.abs(response),
          [1.0, 1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 0.0, 0.0, 0.0],
          decimal=5,
      )
  
      taps_str = firwin(ntaps, pass_zero="bandstop", **kwargs)
      assert_allclose(taps, taps_str)
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_equal, assert_, assert_allclose, assert_warns
  from pytest import raises
  import pytest
  from scipy.fft import fft
  from scipy.special import sinc
  from scipy.signal import kaiser_beta, kaiser_atten, kaiserord, firwin, firwin2, freqz, remez, firls, minimum_phase
label_desc: Use image node_id 4 for calling the TestFirWinMore obj's underlying member method code with example usage: obj.test_bandstop_multi() without return types