docs: def hdf5write(h5file, obj, root=''):
      """
      Write a generic object serializable to a Node-like object into a :class:
      `openquake.baselib.hdf5.File`
      """
      dic = node_to_dict(obj_to_node(obj))
      h5file.save(dic, root)