public void assertDecoded(String input) {
        var context = new Embedder.Context("test");
        var tokens = embedder.embed(input, context);
        var result = embedder.decode(tokens, context);
        assertEquals(input, result);
    }
Tests both embedding to a list of id's and encoding the same ids to a vector of the given type.

@param expectedCodes all the expected codes of the given input, not including any trailing 0-paddings
                     required for the tensor only
linguistics-components/src/test/java/com/yahoo/language/tools/EmbedderTester.java