human
I wrote the below code

    def _by_version(name):
        '\n                                Parse    each    component    of    the    filename\n                                '
        (name, ext) = os.path.splitext(name)
        parts = itertools.chain(name.split('-'), [ext])
        return [packaging.version.parse(part) for part in parts]
    return sorted(names, key=_by_version, reverse=True)

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

def _by_version_descending(names):