def METHOD_NAME(fips_dir, emsdk_version):
    if not clone_or_update_emsdk(fips_dir):
        log.error('Failed to install or update emscripten SDK')
    if emsdk_version is None:
        emsdk_version = EMSDK_DEFAULT_VERSION
    log.colored(log.YELLOW, "=== installing emscripten tools for '{}'".format(emsdk_version))
    run(fips_dir, "install --shallow --disable-assertions {}".format(emsdk_version))
    activate(fips_dir, emsdk_version)