code: def test_firwin2_deprecations(self):
      with pytest.deprecated_call(match="argument 'nyq' is deprecated"):
          firwin2(1, [0, 10], [1, 1], nyq=10)
      with pytest.deprecated_call(match="use keyword arguments"):
          # from test04
          firwin2(
              5, [0.0, 0.5, 0.5, 1.0], [1.0, 1.0, 0.0, 0.0], 8193, None
          )
  
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 11 for calling the TestFirwin2 obj's underlying member method code with example usage: obj.test_firwin2_deprecations() without return types