human
I wrote the below code

    @wraps(func)
    def set_git_working_dir(self, *args, **kwargs):
        cur_wd = os.getcwd()
        os.chdir(self.repo.working_tree_dir)
        try:
            return func(self, *args, **kwargs)
        finally:
            os.chdir(cur_wd)
    return set_git_working_dir

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

def git_working_dir(func):