CellFunction not defined in parallel run

I am trying to run code in parallel by following this answer https://fenicsproject.org/qa/5337/importing-marked-mesh-for-parallel-use/

I get error: “CellFunction is not defined”. How to run using MeshFunction or is there anyother way to resolve this issue?

I am using dolfin version 2019.1

The EnitityNameFunctions were removed due to maintenance issues. Their functionality is identical to MeshFunction. E.g. MeshFunction("size_t", mesh, mesh.topology().dim()) will give you the old CellFunction("size_t", mesh).

Thanks for your suggestions.