human
I wrote the below code

    def clip_impl(series, lower, upper):
        data = series._values.copy()
        for i in range(len(data)):
            v = data[i]
            if (v < lower):
                data[i] = lower
            elif (v > upper):
                data[i] = upper
        return Series(data, series._index)
    return clip_impl

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

@overload_method(SeriesType, 'clip')
def series_clip(series, lower, upper):