class_docstr: Different author, different style, different tests...
class_docstr_tok: ["Different","author",",","different","style",",","different","tests","..."]
code: def test_highpass(self):
      width = 0.04
      ntaps, beta = kaiserord(120, width)
  
      # Ensure that ntaps is odd.
      ntaps |= 1
  
      taps = firwin(
          ntaps,
          cutoff=0.5,
          window=("kaiser", beta),
          pass_zero=False,
          scale=False,
      )
  
      # 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.25, 0.5 - width / 2, 0.5 + width / 2, 0.75, 1.0]
      )
      freqs, response = freqz(taps, worN=np.pi * freq_samples)
      assert_array_almost_equal(
          np.abs(response), [0.0, 0.0, 0.0, 1.0, 1.0, 1.0], decimal=5
      )
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_equal, assert_, assert_allclose, assert_warns
  from pytest import raises
  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 2 for calling the TestFirWinMore obj's underlying member method code with example usage: obj.test_highpass() without return types