def _tmp_name(input):
 if (input is not None):
  input = os.path.dirname(input)
 (f, fn) = tempfile.mkstemp(dir=input)
 os.close(f)
 return fn

def _tmp_name ( input ) : if ( input is not None ) : input = os . path . dirname ( input ) ( f , fn ) = tempfile . mkstemp ( dir = input ) os . close ( f ) return fn
create a temporary file name which should not already exist .