def METHOD_NAME(cls, string):
    version, build_number = string.split('/')
    if build_number == "latest":
        return cls(version=version, latest=True)
    else:
        build_number = int(build_number)
        return cls(version=version, build_number=build_number)