@classmethod<EOL><INDENT>def factory(cls, filename, mode, on_close):<DEDENT>
_temp_file = tempfile.TemporaryFile()<EOL>proxy = cls(_temp_file, filename, mode, on_close=on_close)<EOL>return proxy<EOL>
Create a S3File backed with a temporary file.