def METHOD_NAME():
    """Get a name (full path) of a temporary file.
    Deletes the file at program exit which is appropriate for modules and scripts.
    """
    # We are responsible for deleting the file.
    tmp_file = tempfile.NamedTemporaryFile(delete=False)
    tmp_file.close()  # Closed but still exists.
    atexit.register(lambda: os.remove(tmp_file.name))
    return tmp_file.name