def METHOD_NAME(path: Union[pathlib.Path, str], incremental_path: Optional[Union[pathlib.Path, str, list]] = None,
         user_dir: Optional[Union[pathlib.Path, str]] = None) -> bool:
    """
    加载 dll 及资源
    :params:
        ``path``:    DLL及资源所在文件夹路径
        ``incremental_path``:   增量资源所在文件夹路径
        ``user_dir``:   用户数据（日志、调试图片等）写入文件夹路径
    """
    platform_values = {
        'windows': {
            'libpath': 'MaaCore.dll',
            'environ_var': 'PATH'
        },
        'darwin': {
            'libpath': 'libMaaCore.dylib',
            'environ_var': 'DYLD_LIBRARY_PATH'
        },
        'linux': {
            'libpath': 'libMaaCore.so',
            'environ_var': 'LD_LIBRARY_PATH'
        }
    }
    platform_type = platform.system().lower()
    if platform_type == 'windows':
        lib_import_func = ctypes.WinDLL
        # Todo: MAA v4.12.0正式版更新之后删除
        # 手动加载onnxruntime.dll以避免部分版本的python错误地从System32加载旧版本
        try:
            lib_import_func(str(pathlib.Path(path) / 'onnxruntime.dll'))
        except Exception as e:
            print(e)
            pass
        # Todo
    else:
        lib_import_func = ctypes.CDLL
    Asst.__libpath = pathlib.Path(path) / platform_values[platform_type]['libpath']
    try:
        os.environ[platform_values[platform_type]['environ_var']] += os.pathsep + str(path)
    except KeyError:
        os.environ[platform_values[platform_type]['environ_var']] = os.pathsep + str(path)
    Asst.__lib = lib_import_func(str(Asst.__libpath))
    Asst.__set_lib_properties()
    ret: bool = True
    if user_dir:
        ret &= Asst.__lib.AsstSetUserDir(str(user_dir).encode('utf-8'))
    ret &= Asst.__lib.AsstLoadResource(str(path).encode('utf-8'))
    if incremental_path:
        if isinstance(incremental_path, list):
            for i_path in incremental_path:
                ret &= Asst.__lib.AsstLoadResource(
                    str(i_path).encode('utf-8'))
        else:
            ret &= Asst.__lib.AsstLoadResource(
                str(incremental_path).encode('utf-8'))
    return ret