code: def test_sweep_poly_quad2(self):
      p = np.poly1d([1.0, 0.0, -2.0])
      t = np.linspace(0, 3.0, 10000)
      phase = waveforms._sweep_poly_phase(t, p)
      tf, f = compute_frequency(t, phase)
      expected = p(tf)
      abserr = np.max(np.abs(f - expected))
      assert_(abserr < 1e-6)
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_, assert_allclose, assert_array_equal
  from pytest import raises
  import scipy.signal.waveforms
label_desc: Use image node_id 4 for calling the TestSweepPoly obj's underlying member method code with example usage: obj.test_sweep_poly_quad2() without return types