How do i resolve this issue of MixedElement in google colab

Please clarify how you installed FEniCS on Colab.

If you used FEM on Colab, I purposely disabled ufl because of Announcement: ufl_legacy and legacy dolfin, so you must ufl_legacy instead of ufl.