def METHOD_NAME(inp, fold_ratio):
    img_folded = None
    for i in range(fold_ratio):
        for j in range(fold_ratio):
            if img_folded is not None:
                img_folded = np.concatenate((img_folded, inp[i::fold_ratio, j::fold_ratio, :]), axis=2)
            else:
                img_folded = inp[i::fold_ratio, j::fold_ratio, :]
    return img_folded