code: def write_temp_file(content):
          
          f_temp = NamedTemporaryFile(delete=True)
          f_temp.file.write(content)
          f_temp.file.flush()
          return f_temp
docs: 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