code: def _truncate(w, needed):
      """Truncate window by 1 sample if needed for DFT-even symmetry"""
      if needed:
          return w[:-1]
      else:
          return w
  
imports: from __future__ import division, print_function, absolute_import
  import operator
  import warnings
  import numpy
  from scipy import fftpack, linalg, special
  from scipy._lib.six import string_types
label_desc: Use image node_id 3 for calling a global function with example usage: _truncate(w, needed) and returns: w, w