code: def parzen(M, sym=True):
      if _len_guards(M):
          return cp.ones(M)
      M, needs_trunc = _extend(M, sym)
  
      w = _parzen_kernel(size=M)
  
      return _truncate(w, needs_trunc)
  
imports: import warnings
  import cupy
  import numpy
label_desc: Use image node_id 7 for calling a global function with example usage: parzen(M, sym) and returns: _truncate, cp