def ver_cmp(ver1, ver2):
return cmp(<EOL>pkg_resources.parse_version(ver1), pkg_resources.parse_version(ver2)<EOL>)<EOL>
Compare lago versions

Args:
    ver1(str): version string
    ver2(str): version string

Returns:
    Return negative if ver1<ver2, zero if ver1==ver2, positive if
    ver1>ver2.