human
I wrote the below code

    @wraps(func)
    def check_default_index(self, *args, **kwargs):
        if (self._file_path != self._index_path()):
            raise AssertionError(('Cannot    call    %r    on    indices    that    do    not    represent    the    default    git    index' % func.__name__))
        return func(self, *args, **kwargs)
    return check_default_index

What's a good function header?

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

def default_index(func):