def METHOD_NAME(self, host, port):
    swmp_name = os.getenv("swmp_name")
    swmp_version_name = os.getenv("swmp_version_name")
    if swmp_name is None or swmp_version_name is None:
        print("Test Model Version revert cancel.")
        return
    path = f"/project/1/model/{swmp_name}/revert"
    res = requests.post(
        url=hu.url(host, port) + path,
        json={"versionUrl": swmp_version_name},
        headers=hu.header(),
    )
    response = res.json()
    assert res.status_code == 200
    assert response["code"] == "success"
    print("Test Model Version revert ok.")