def write_to_file(path, content):
    with open(path, 'wb') as file_:
        file_.write(content)
Create (if does not exist) and write to the file.
dataset/ETHPy150Open openstack-infra/git-review/git_review/tests/utils.py/write_to_file