def pad_data_mult16(data, fill=0):

    if type(data) == gpuarray:
        data = data.get()

    n, k = data.shape

    km = int(k/16) + 1

    newk = km*16
    if newk != k:
        padded_data = np.zeros((n, newk), dtype=np.float32)
        if fill!=0:
            padded_data = padded_data + fill

        padded_data[:,:k] = data

        return padded_data
    else:
        return prep_ndarray(data)
Replaces flask.abort function using mocker
dataset/ETHPy150Open dukestats/gpustats/gpustats/util.py/pad_data_mult16--crossover with--dataset/ETHPy150Open cobrateam/flask-mongoalchemy/tests/__init__.py/BaseAppTestCase._replace_flask_abort_raising_exception