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