All d2l packages are not working on Google Colab right now. In Colab, you always have to install the code after installing it like the picture below, but there seems to be an error in the package itself. The @command and module are disabled when loading classes.