def METHOD_NAME(src, dst):  # pylint: disable=E0102
    tra = _CreateTransaction(None, 0, 0, 0, 0, 1000, "Atomic rename")
    if tra == -1:
        return False
    try:
        retry = 0
        rval = False
        while not rval and retry < 100:
            rval = _MoveFileTransacted(
                src,
                dst,
                None,
                None,
                _MOVEFILE_REPLACE_EXISTING | _MOVEFILE_WRITE_THROUGH,
                tra,
            )
            if rval:
                rval = _CommitTransaction(tra)
                break
            else:
                time.sleep(0.001)
                retry += 1
        return rval
    finally:
        _CloseHandle(tra)