code: def alt_sg_coeffs(window_length, polyorder, pos):
      """This is an alternative implementation of the SG coefficients.
  
      It uses numpy.polyfit and numpy.polyval. The results should be
      equivalent to those of savgol_coeffs(), but this implementation
      is slower.
  
      window_length should be odd.
  
      """
      if pos is None:
          pos = window_length // 2
      t = np.arange(window_length)
      unit = (t == pos).astype(int)
      h = np.polyval(np.polyfit(t, unit, polyorder), t)
      return h
  
file_path: catboost/contrib/python/scipy/py3/scipy/signal/tests/test_savitzky_golay.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal
  from scipy.ndimage import convolve1d
  from scipy.signal import savgol_coeffs, savgol_filter
  from scipy.signal._savitzky_golay import _polyder
label_desc: Use image node_id 3 for calling a global function with example usage: alt_sg_coeffs(window_length, polyorder, pos) and returns: h