code: def read_hdf5_timeseries(h5f, path=None, start=None, end=None, **kwargs):
      
      # read data
      kwargs.setdefault('array_type', TimeSeries)
      series = read_hdf5_array(h5f, path=path, **kwargs)
      # crop if needed
      if start is not None or end is not None:
          return series.crop(start, end)
      return series
docs: Read a `TimeSeries` from HDF5