def create_temp_file_name(suffix, prefix=None, dir=None, directory=None):
if dir is not None:<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>", DeprecationWarning)<EOL>directory = dir<EOL><DEDENT>if not prefix:<EOL><INDENT>prefix = tempfile.gettempprefix()<EOL><DEDENT>fd, name = tempfile.mkstemp(suffix=suffix, prefix=prefix, dir=directory)<EOL>file_obj = os.fdopen(fd)<EOL>file_obj.close()<EOL>return name<EOL>
Small convenience function that creates temporary files.

This function is a wrapper around the Python built-in
function tempfile.mkstemp.