code: def highpass(timeseries, frequency, filter_order=8, attenuation=0.1):
      
  
      if not isinstance(timeseries, TimeSeries):
          raise TypeError("Can only resample time series")
  
      if timeseries.kind is not 'real':
          raise TypeError("Time series must be real")
  
      lal_data = timeseries.lal()
      _highpass_func[timeseries.dtype](lal_data, frequency,
                                       1-attenuation, filter_order)
  
      return TimeSeries(lal_data.data.data, delta_t = lal_data.deltaT,
                        dtype=timeseries.dtype, epoch=timeseries._epoch)
docs: Return a new timeseries that is highpassed.
  
      Return a new time series that is highpassed above the `frequency`.
  
      Parameters
      ----------
      Time Series: TimeSeries
          The time series to be high-passed.
      frequency: float
          The frequency below which is suppressed.
      filter_order: {8, int}, optional
          The order of the filter to use when high-passing the time series.
      attenuation: {0.1, float}, optional
          The attenuation of the filter.
  
      Returns
      -------
      Time Series: TimeSeries
          A  new TimeSeries that has been high-passed.
  
      Raises
      ------
      TypeError:
          time_series is not an instance of TimeSeries.
      TypeError:
          time_series is not real valued