@staticmethod<EOL><INDENT>def write_temp_file(content):<DEDENT>
f_temp = NamedTemporaryFile(delete=True)<EOL>f_temp.file.write(content)<EOL>f_temp.file.flush()<EOL>return f_temp<EOL>
Writes some content into a temporary file and returns it.

:param content: The file content
:type: string

:returns: The temporary file
:rtype: file-like object