code: def get_attrs(self, key):
          
          try:
              dset = h5py.File.__getitem__(self.hdf5, key)
          except KeyError:
              if self.parent != ():
                  dset = h5py.File.__getitem__(self.parent.hdf5, key)
              else:
                  raise
          return dict(dset.attrs)
docs: :param key: dataset path
          :returns: dictionary of attributes for that path