def METHOD_NAME(request):
    (tmp_cfg_fd, tmp_cfg_file_path) = tempfile.mkstemp()
    os.close(tmp_cfg_fd)
    def RemoveTempFile():
        print("Removing %r" %(tmp_cfg_file_path))
        os.remove(tmp_cfg_file_path)
    request.addfinalizer(RemoveTempFile)
    return tmp_cfg_file_path