csv = """a,b
1,2
"""
with open("data.csv", "w") as f:
    f.write(csv)

43512a05ea76fe3b1562da3ab224fbc2336146a5
<mask token>

<mask token>
with open('data.csv', 'w') as f:
    f.write(csv)

csv = 'a,b\n1,2\n'
with open('data.csv', 'w') as f:
    f.write(csv)

csv = """a,b
1,2
"""
with open("data.csv", "w") as f:
    f.write(csv)
