human
I wrote the below code

    def get_path_med(path):
        med = path.get_pattr(BGP_ATTR_TYPE_MULTI_EXIT_DISC)
        if (not med):
            return 0
        return med.value
    med1 = get_path_med(path1)
    med2 = get_path_med(path2)
    if (med1 == med2):
        return None
    elif (med1 < med2):
        return path1
    return path2

What's a good function header?

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

def _cmp_by_med(path1, path2):