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

    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)
        try:
            _os.mkdir(file, 0700)
            return file
        except OSError, e:
            if e.errno == _errno.EEXIST:
                continue # try again
            raise

    raise IOError, (_errno.EEXIST, "No usable temporary directory name found")
@type gs_access_key_id: string
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/python/Lib/tempfile.py/mkdtemp--crossover with--dataset/ETHPy150Open darcyliu/storyboard/boto/__init__.py/connect_gs