code: def low_pass_filter(seg, cutoff):
      """
      cutoff - Frequency (in Hz) where higher frequency signal will begin to
          be reduced by 6dB per octave (doubling in frequency) above this point
      """
      RC = 1.0 / (cutoff * 2 * math.pi)
      dt = 1.0 / seg.frame_rate
  
      alpha = dt / (RC + dt)
  
      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
              last_val[j] = last_val[j] + (
                  alpha * (original[offset] - last_val[j])
              )
              filteredArray[offset] = int(last_val[j])
  
      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 7 for calling a global function with example usage: low_pass_filter(seg, cutoff) and returns: seg