def METHOD_NAME(uncompressed_size):
    mcs = ctypes.c_int()
    res = dlib.LZ4MaxCompressedSize(uncompressed_size, ctypes.byref(mcs))
    if res != 0:
        raise Exception('dlib.LZ4MaxCompressedSize failed! Error code: ' % res)
    return mcs.value