code: def read_hdf5_dict(h5f, names=None, group=None, **kwargs):
      
      # find group from which to read
      if group:
          h5g = h5f[group]
      else:
          h5g = h5f
  
      # find list of names to read
      if names is None:
          names = [key for key in h5g if _is_timeseries_dataset(h5g[key])]
  
      # read names
      out = kwargs.pop('dict_type', TimeSeriesDict)()
      kwargs.setdefault('array_type', out.EntryClass)
      for name in names:
          out[name] = read_hdf5_timeseries(h5g[name], **kwargs)
  
      return out
docs: Read a `TimeSeriesDict` from HDF5