Is there any function similar to FunctionAssigner that works with different meshes?

No, it does not.
What i meant is that since this feature is in dolfin, it would be natural to extend dolfin-adjoint. However, this requires an effort, and Im not sure who has the time for this as of now.