code: def cmp(cls, v1: 'VersionBase', v2: 'VersionBase') -> int:
          
          # TODO types checking
          if v1._version > v2._version:
              return 1
          elif v1._version == v2._version:
              return 0
          else:
              return -1
docs: Compares two instances.