human
I wrote the below code

    if (objects is None):
        objects = ['HEAD']
    if (not isinstance(objects, list)):
        objects = [objects]
    with open_repo_closing(repo) as r:
        for objectish in objects:
            o = parse_object(r, objectish)
            if isinstance(o, Commit):
                def decode(x):
                    return commit_decode(o, x, default_encoding)
            else:
                def decode(x):
                    return x.decode(default_encoding)
            show_object(r, o, decode, outstream)

What's a good function header?

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

def show(repo='.', objects=None, outstream=sys.stdout, default_encoding=DEFAULT_ENCODING):