I cannot get this example to run. Can anyone confirm whether they can, and what version of python and dgl they use please?

That was a pretty old example. Could you try DGL 1.0.2 or 1.1.0? The last commit was made in March last year and the release version by then was the two versions above.