code: def deco(name):
      f = getattr(windows, name)
      # Add deprecation to docstring
  
      def wrapped(*args, **kwargs):
          return f(*args, **kwargs)
  
      wrapped.__name__ = name
      wrapped.__module__ = "scipy.signal"
      if hasattr(f, "__qualname__"):
          wrapped.__qualname__ = f.__qualname__
  
      if f.__doc__ is not None:
          lines = f.__doc__.splitlines()
          for li, line in enumerate(lines):
              if line.strip() == "Parameters":
                  break
          else:
              raise RuntimeError("dev error: badly formatted doc")
          spacing = " " * line.find("P")
          lines.insert(
              li,
              (
                  "{0}.. warning:: scipy.signal.{1} is deprecated,\n"
                  "{0}             use scipy.signal.windows.{1} "
                  "instead.\n".format(spacing, name)
              ),
          )
          wrapped.__doc__ = "\n".join(lines)
  
      return wrapped
  
imports: from __future__ import division, print_function, absolute_import
  from .None import sigtools, windows
  from .waveforms import *
  from ._max_len_seq import max_len_seq
  from ._upfirdn import upfirdn
  from .spline import *
  from .bsplines import *
  from .filter_design import *
  from .fir_filter_design import *
  from .ltisys import *
  from .lti_conversion import *
  from .signaltools import *
  from ._savitzky_golay import savgol_coeffs, savgol_filter
  from .spectral import *
  from .wavelets import *
  from ._peak_finding import *
  from .windows import get_window
  from .windows import hanning
  from scipy._lib._testutils import PytestTester
label_desc: Use image node_id 1 for calling a global function with example usage: deco(name) and returns: wrapped, f