Is there a smart way to change FeNICs code to new Dolfinx?

Sorry if I am not making sense, this is my first time using FeNICs. My advisor has code in old fenics and she wants me to transfer it to the current version I guess is Dolfinx to produce similar results she had in 2016. But unfortunately i get a lot of errors even after making some changes. kindly help me out if you’ve experience such problem before. Thanks😊.

You should look at the tutorial:
https://jsdokken.com/dolfinx-tutorial/
as well as the demos:
https://docs.fenicsproject.org/dolfinx/v0.6.0/python/demos.html
There is also a cheatsheet at: Create a DOLFIN to DOLFINx "cheat sheet" · Issue #2330 · FEniCS/dolfinx · GitHub
(see comments on the issue to get more context and the repo hosted by juliusgh)