def METHOD_NAME(in_size, out_size, np_data, np_op):
    out = np.zeros(out_size).astype(np_data.dtype)
    ow = out_size[0]
    for l in range(ow):
        l_start = _start_index(l, ow, in_size[0])
        l_end = _end_index(l, ow, in_size[0])
        l_sl = slice(l_start, l_end)
        out[l] = np_op(np_data[l_sl])
    return out