@contextmanager<EOL>def TemporaryFilename(*args, **kwargs):  
name = tempfile.mktemp(*args, **kwargs)<EOL>try:<EOL><INDENT>yield name<EOL><DEDENT>finally:<EOL><INDENT>if os.path.isfile(name):<EOL><INDENT>os.remove(name)<EOL><DEDENT><DEDENT>
Create and return a temporary filename

    Calls `tempfile.mktemp` to create a temporary filename, and deletes
    the named file (if it exists) when the context ends.

    This method **does not create the named file**.

    Examples
    --------
    >>> with TemporaryFilename(suffix='.txt') as tmp:
    ...     print(tmp)
    '/var/folders/xh/jdrqg2bx3s5f4lkq0rf2903c0000gq/T/tmpnNxivL.txt'