def mktemp(suffix="", prefix=template, dir=None):

##    from warnings import warn as _warn
##    _warn("mktemp is a potential security risk to your program",
##          RuntimeWarning, stacklevel=2)

    if dir is None:
        dir = gettempdir()

    names = _get_candidate_names()
    for seq in xrange(TMP_MAX):
        name = names.next()
        file = _os.path.join(dir, prefix + name + suffix)
        if not _exists(file):
            return file

    raise IOError, (_errno.EEXIST, "No usable temporary filename found")
User-callable function to return a unique temporary file name.  The
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/python/Lib/tempfile.py/mktemp