def METHOD_NAME(fname, text):
    "write wrapper"
    if not os.path.exists(fname):
        try:
            with open(fname, 'w', encoding=sys.getdefaultencoding()) as fh:
                fh.write(f'# {text}\n')
        except:
            log_error(sys.exc_info()[1])