code: def high_pass_filter(seg, cutoff):
      """
      cutoff - Frequency (in Hz) where lower frequency signal will begin to
          be reduced by 6dB per octave (doubling in frequency) below this point
      """
      RC = 1.0 / (cutoff * 2 * math.pi)
      dt = 1.0 / seg.frame_rate
  
      alpha = RC / (RC + dt)
  
      minval, maxval = get_min_max_value(seg.sample_width * 8)
  
      original = seg.get_array_of_samples()
      filteredArray = array.array(seg.array_type, original)
  
      frame_count = int(seg.frame_count())
  
      last_val = [0] * seg.channels
      for i in range(seg.channels):
          last_val[i] = filteredArray[i] = original[i]
  
      for i in range(1, frame_count):
          for j in range(seg.channels):
              offset = (i * seg.channels) + j
              offset_minus_1 = ((i - 1) * seg.channels) + j
  
              last_val[j] = alpha * (
                  last_val[j]
                  + original[offset]
                  - original[offset_minus_1]
              )
              filteredArray[offset] = int(
                  min(max(last_val[j], minval), maxval)
              )
  
      return seg._spawn(data=filteredArray)
  
file_path: pydub/pydub/effects.py
imports: import sys
  import math
  import array
  from .utils import db_to_float, ratio_to_db, register_pydub_effect, make_chunks, audioop, get_min_max_value
  from .silence import split_on_silence
  from .exceptions import TooManyMissingFrames, InvalidDuration
label_desc: Use image node_id 8 for calling a global function with example usage: high_pass_filter(seg, cutoff) and returns: seg