def METHOD_NAME(mode, path, user_dict, movie_dict):
    stage, online = mode.split('_')
    feas = {
        "userid": "userid",
        "movieid": "movieid",
        "ratings": "predict",
        "label": "label"
    }
    infer_results = load_infer_results(path, feas, movie_dict)
    if online.startswith("offline"):
        return
    for uid in infer_results:
        display_user(user_dict[uid])
        display_movies(infer_results[uid])
    with open(test_user_path + "/movies.dat", 'w') as fout:
        for uid in infer_results:
            for item in infer_results[uid]:
                str_ = uid + "::" + str(item["movieid"]) + "::" + str(
                    int(item["score"])) + "\n"
                fout.write(str_)