Importing 3D .msh file into Fenics as mesh

Thanks for your reply! I have tried running the code you have provided which leads me to this error message:

 /home/fenics/.local/lib/python3.6/site-packages/h5py/__init__.py:40: UserWarning: h5py is running against HDF5 1.10.0 when it was built against 1.10.4, this may cause problems
  '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
Traceback (most recent call last):
  File "target3Dmsh.py", line 67, in <module>
    meshio.write("mesh.xdmf", tetra_mesh)
  File "/home/fenics/.local/lib/python3.6/site-packages/meshio/_helpers.py", line 144, in write
    return writer(filename, mesh, **kwargs)
  File "/home/fenics/.local/lib/python3.6/site-packages/meshio/xdmf/main.py", line 528, in write
    XdmfWriter(*args, **kwargs)
  File "/home/fenics/.local/lib/python3.6/site-packages/meshio/xdmf/main.py", line 336, in __init__
    self.h5_file = h5py.File(self.h5_filename, "w")
  File "/home/fenics/.local/lib/python3.6/site-packages/h5py/_hl/files.py", line 405, in __init__
    fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0, **kwds)
  File "/home/fenics/.local/lib/python3.6/site-packages/h5py/_hl/files.py", line 111, in make_fapl
    plist.set_libver_bounds(low, high)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5p.pyx", line 1142, in h5py.h5p.PropFAID.set_libver_bounds
ValueError: Invalid high library version bound (invalid high library version bound)

I have tried fully uninstalling both meshio and h5py but this still gives me this error message. I have also tried reinstalling both of these modules as described within this thread Gmsh 4.4.1 in FEniCS? Meshio
but I then obtain:

ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-19z847ve/h5py/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-s2dwmcju/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-19z847ve/h5py/   

For reference, I am running all of this within Docker version 19.03.5, build 633a0ea838f1