def string_as_temporary_file(content):
handle = NamedTemporaryFile(mode='<STR_LIT>', delete=False)<EOL>handle.write(content)<EOL>handle.close()<EOL>return handle.name<EOL>
Writes content to a temporary file.