human
Here's a good function header given the following:
I wrote the below code

    if isinstance(series, SeriesType):
        def len_impl(series):
            return len(series._values)
        return len_impl

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

@overload(len)
def series_len(series):