The statement “from cocotb.runner import get_runner” in some datasets breaks for cocotb version 2.0, but works for version 1.9. The runner has moved to the cocotb_tools in version 2.0, thus "from cocotb_tools.runner import get_runner". This imports the runner OK but crashes later in the code, as the implementation perhaps has a breaking change compared to the provious version.
I eneded up restricting cocotb's version using "pip3 install 'cocotb>=1.9,<2.0'" in the affected datasets and it solved the problem, at least for now.