code: def version_parser(version_string):
      
      version, commit, branch = version_string.split('-', 3)
  
      # Remove the "v"
      version_number = version[1:]
      version_number = int(version_number)
  
      return Version(version_number, commit, branch)
docs: :param version_string: The version tag as returned by the registry/hub API
      :return: A tuple with the parsed version / an exception when the version
               format is unknown/incorrect