code: def highpass(frequency, sample_rate, fstop=None, gpass=2, gstop=30, type='iir',
               **kwargs):
      
      sample_rate = _as_float(sample_rate)
      frequency = _as_float(frequency)
      if fstop is None:
          fstop = frequency * 2/3.
      if type == 'iir':
          return _design_iir(frequency, fstop, sample_rate, gpass, gstop,
                             **kwargs)
      return _design_fir(frequency, fstop, sample_rate, gpass, gstop,
                         **kwargs)
docs: Design a high-pass filter for the given cutoff frequency
  
      Parameters
      ----------
      frequency : `float`
          corner frequency of high-pass filter
  
      sample_rate : `float`
          sampling rate of target data
  
      fstop : `float`, optional
          edge-frequency of stop-band
  
      gpass : `float`, optional, default: 2
          the maximum loss in the passband (dB)
  
      gstop : `float`, optional, default: 30
          the minimum attenuation in the stopband (dB)
  
      type : `str`, optional, default: ``'iir'``
          the filter type, either ``'iir'`` or ``'fir'``
  
      **kwargs
          other keyword arguments are passed directly to
          :func:`~scipy.signal.iirdesign` or :func:`~scipy.signal.firwin`
  
      Returns
      -------
      filter
          the formatted filter. the output format for an IIR filter depends
          on the input arguments, default is a tuple of `(zeros, poles, gain)`
  
      Notes
      -----
      By default a digital filter is returned, meaning the zeros and poles
      are given in the Z-domain in units of radians/sample.
  
      Examples
      --------
      To create a high-pass filter at 100 Hz for 4096 Hz-sampled data:
  
      >>> from gwpy.signal.filter_design import highpass
      >>> hp = highpass(100, 4096)
  
      To view the filter, you can use the `~gwpy.plot.BodePlot`:
  
      >>> from gwpy.plot import BodePlot
      >>> plot = BodePlot(hp, sample_rate=4096)
      >>> plot.show()