def METHOD_NAME(sentences, mentions, output_file_id):
    obj = {"sentences": sentences, "mentions": mentions}
    with open(get_end2end_pickle_output_file_path(output_file_id), "wb") as file:
        pickle.dump(obj, file)