def METHOD_NAME(img, ksize, layout):
    ksize = ksize[0]
    dst = np.zeros_like(img)
    if layout[0] == 'F':
        for f in range(0, img.shape[0]):
            cv2_median_blur(dst[f, :, :, :], img[f, :, :, :], ksize, layout)
    else:
        cv2_median_blur(dst, img, ksize, layout)
    return dst