def _get_simple_uploaded_file(self, image, file_name):
extension = os.path.splitext(file_name)[<NUM_LIT:1>]<EOL>mimetype, encoding = mimetypes.guess_type(file_name)<EOL>content_type = mimetype or '<STR_LIT>'<EOL>temp_handle = BytesIO()<EOL>image.save(temp_handle, self._get_pil_format(extension))<EOL>temp_handle.seek(<NUM_LIT:0>)  <EOL>suf = SimpleUploadedFile(<EOL>file_name,<EOL>temp_handle.read(),<EOL>content_type=content_type,<EOL>)<EOL>return suf<EOL>
:param image:
    a python PIL ``Image`` instance.

:param file_name:
    The file name of the image.

:returns:
    A django ``SimpleUploadedFile`` instance ready to be saved.