human
I wrote the below code

    def normalize(v):
        return [int(x) for x in re.sub('(\\.0+)*$', '', v).split('.')]
    normalized_version1 = normalize(version1)
    normalized_version2 = normalize(version2)
    if (normalized_version1 == normalized_version2):
        rc = 0
    elif (normalized_version1 < normalized_version2):
        rc = (-1)
    else:
        rc = 1
    return rc

What's a good function header?

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

def compare_package(version1, version2):