def METHOD_NAME(api_request):
    """
    Tests the hub api's root endpoint (/). The hub's version should be returned.
    A typical jupyterhub logging response to this test:
        [I 2019-09-25 12:03:12.051 JupyterHub log:174] 200 GET /hub/api (test@127.0.0.1) 9.57ms
    """
    print("asking for the hub's version")
    r = api_request.get("")
    assert r.status_code == 200
    assert r.json().get("version", "version-missing") == jupyterhub_version