code: def _sweep_poly_phase(t, poly):
      """
      Calculate the phase used by sweep_poly to generate its output.
  
      See `sweep_poly` for a description of the arguments.
  
      """
      # polyint handles lists, ndarrays and instances of poly1d automatically.
      intpoly = polyint(poly)
      phase = 2 * pi * polyval(intpoly, t)
      return phase
  
file_path: catboost/contrib/python/scipy/py2/scipy/signal/waveforms.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, exp, cos, sin, polyval, polyint
  from scipy._lib.six import string_types
label_desc: Use image node_id 7 for calling a global function with example usage: _sweep_poly_phase(t, poly) and returns: phase