def write(text, path, description=None):
    """Write a string to a file."""
    desc = ('%s ' % description) if description else ''
    log.info("writing %sto: %s" % (desc, path))
    with open(path, 'w', encoding=ENCODING) as f:
        f.write(text)
dataset/ETHPy150Open cjerdonek/open-rcv/openrcv_setup/utils.py/write/original