async def METHOD_NAME(sessions):
    for s in sessions:
        a = await s.client.get_agent_status_x("X")
        assert a.code == 200, a.result
        result = a.get_result()
        assert result["status"] == "ok", result