code: def zpad(v, Nv):
      
  
      vp = np.zeros(Nv + v.shape[len(Nv):], dtype=v.dtype)
      axnslc = tuple([slice(0, x) for x in v.shape])
      vp[axnslc] = v
      return vp
docs: Zero-pad initial axes of array to specified size. Padding is
      applied to the right, top, etc. of the array indices.
  
      Parameters
      ----------
      v : array_like
        Array to be padded
      Nv : tuple
        Sizes to which each of initial indices should be padded
  
      Returns
      -------
      vp : ndarray
        Padded array