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

    def adjust_encoding(*args, **kwargs):
        name = namefunc(*args, **kwargs)
        if ((name is not None) and (not PY3)):
            name = name.encode()
        return name
    return adjust_encoding

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

def tzname_in_python2(namefunc):