def METHOD_NAME(src, dst):  # pylint: disable=E0102
    if not isinstance(src, str):
        src = str(src, sys.getfilesystemencoding())
    if not isinstance(dst, str):
        dst = str(dst, sys.getfilesystemencoding())
    if _rename_atomic(src, dst):
        return True
    retry = 0
    rval = False
    while not rval and retry < 100:
        rval = _MoveFileEx(
            src, dst, _MOVEFILE_REPLACE_EXISTING | _MOVEFILE_WRITE_THROUGH
        )
        if not rval:
            time.sleep(0.001)
            retry += 1
    return rval