code: def _get_extended_metadata(h5group):
      
      meta = dict()
  
      # get PSD
      try:
          psd = h5group['psd']
      except KeyError:
          pass
      else:
          from gwpy.frequencyseries import FrequencySeries
          meta['psd'] = FrequencySeries(
              psd[:], f0=0, df=psd.attrs['delta_f'], name='pycbc_live')
  
      # get everything else
      for key in META_COLUMNS - {'psd'}:
          try:
              value = h5group[key][:]
          except KeyError:
              pass
          else:
              meta[key] = value
  
      return meta
docs: Extract the extended metadata for a PyCBC table in HDF5
  
      This method packs non-table-column datasets in the given h5group into
      a metadata `dict`
  
      Returns
      -------
      meta : `dict`
         the metadata dict