I suspect this was written with an LLM and the author didn't actually verify that the examples in the README worked.
It means having to go to the linked docs (which are automatically pushed to the repo's github pages) to see examples, but I think this is a reasonable tradeoff.