code: def mkstemp(*args, **kwargs):
    
    fd, filename = tempfile.mkstemp(*args, **kwargs)
    os.close(fd)
    try:
      yield filename
    finally:
      os.remove(filename)
docs: Context manager similar to tempfile.NamedTemporaryFile except the file is not deleted on close, and only the filepath
    is returned
    .. warnings:: Unlike tempfile.mkstemp, this is not secure