dir set to None as the arguments. call the method tmpfile.mkstemp with suffix set to suffix, prefix set to prefix and dir set to dir, store the result in the fd and name, respective.
fd , name = tempfile . mkstemp ( suffix = suffix , prefix = prefix , dir = dir )