def METHOD_NAME():
    s = ai2thor.wsgi_server.WsgiServer(host="127.0.0.1")
    s.send(dict(action="RotateRight"))
    c = s.app.test_client()
    s.client_token = "1234567"
    m = dict(agents=[metadata_simple], sequenceId=s.sequence_id)
    res = c.post(
        "/train",
        data=dict(
            metadata=json.dumps(m),
            token=s.client_token,
            actionReturns=json.dumps([None]),
        ),
    )
    assert res.status_code == 200