def METHOD_NAME(gfp, sampling_rate=None, window_size=0.02):
    """Smooth the Global Field Power Curve"""
    if sampling_rate is None:
        raise ValueError(
            "NeuroKit error: eeg_gfp(): You requested to smooth the GFP, for which ",
            "we need to know the sampling_rate. Please provide it as an argument.",
        )
    window = int(window_size * sampling_rate)
    if window > 2:
        gfp = signal_filter(gfp, method="savgol", order=2, window_size=window)
    return gfp