code: def save_dict_to_hdf5(dic, filename):
      
      with h5py.File(filename, 'w') as h5file:
          recursively_save_dict_contents_to_group(h5file, '/', dic)
docs: Parameters
      ----------
      dic:
          python dictionary to be converted to hdf5 format
      filename:
          desired name of hdf5 file