code: def test01(self, xp, scp):
      beta = 12.0
      ntaps = 400
      # Filter is 1 from w=0 to w=0.5, then decreases linearly from 1 to 0
      # as w increases from w=0.5 to w=1  (w=1 is the Nyquist frequency).
      freq = xp.asarray([0.0, 0.5, 1.0])
      gain = xp.asarray([1.0, 1.0, 0.0])
      taps = scp.signal.firwin2(
          ntaps, freq, gain, window=("kaiser", beta)
      )
      return taps
  
imports: import cupy
  import cupyx.scipy.signal
  from cupy import testing
  import pytest
  from pytest import raises
label_desc: Use image node_id 2 for calling the TestFirwin2 obj's underlying member method code with example usage: obj.test01(xp, scp) and returns: taps