Write and HDF5 file for biventricular geometry

Hi everyone. I’m using fenics mechanics to simulate the mechanics of the heart. However, I can’t create an HDF5 file for the two ventricles. I would like to have a model similar to the one used in the land ellipsoid example.
Can someone help me, thank you in advance.