def METHOD_NAME(args):
    if len(args) != 2:
        print("Usage: {} to_dat filename.npz filename.bin".format(sys.argv[0]))
        exit(-1)
    datas = np.load(args[0])
    with open(args[1], "wb") as f:
        for i in datas:
            f.write(datas[i].tobytes())