def write_file(data):
    with open('requirements_all.txt', 'w+') as req_file:
        req_file.write(data)
Write the modules to the requirements_all.txt.
dataset/ETHPy150Open home-assistant/home-assistant/script/gen_requirements_all.py/write_file