Where did mshr._generate(mesh, domain, resolution) go?

Hi Ben, this seems to be an issue many new users have because the tutorials and documentation of FEniCS are not updated to reflect the changes of the last version of FEniCS (except for the automatically generated documentation). Maybe you should check my post:

The FEniCS Book and non-automatically generated documentation for the 2019 version of FEniCS?