def write_submission_file(submission_file, test_nodes, test_predictions):

    f = open(submission_file, "w")
    writer = csv.writer(f)
    writer.writerow(["source_node", "destination_nodes"])

    for source_node, dest_nodes in zip(test_nodes, test_predictions):
        writer.writerow([str(source_node),
                         " ".join([str(n) for n in dest_nodes])])
    f.close()
Writes the submission file
dataset/ETHPy150Open benhamner/FacebookRecruitingCompetition/Benchmarks/utilities.py/write_submission_file