code: public static INDArray im2col(INDArray img, int kh, int kw, int sy, int sx, int ph, int pw, boolean isSameMode) {
          return im2col(img, kh, kw, sy, sx, ph, pw, 1, 1, isSameMode);
      }
docs: Implement column formatted images
  
  @param img        the image to process
  @param kh         the kernel height
  @param kw         the kernel width
  @param sy         the stride along y
  @param sx         the stride along x
  @param ph         the padding width
  @param pw         the padding height
  @param isSameMode whether to cover the whole image or not
  @return the column formatted image