private void writeBlob(ByteBuffer blob, String relativePath) {
            try (FileOutputStream fos = new FileOutputStream(new File(appDir, relativePath))) {
                if (relativePath.endsWith(".lz4")) {
                    LZ4FrameOutputStream lz4 = new LZ4FrameOutputStream(fos);
                    lz4.write(blob.array(), blob.arrayOffset(), blob.remaining());
                    lz4.close();
                } else {
                    fos.write(blob.array(), blob.arrayOffset(), blob.remaining());
                }
            } catch (IOException e) {
                throw new IllegalArgumentException("Failed writing temp file", e);
            }
        }
Create a ModelsEvaluator from the models found in the modelsPath. Does
not need to be in a application package.

@param modelsPath Path to a directory containing models to import
@return a ModelsEvaluator containing the imported models
config-model/src/main/java/com/yahoo/vespa/model/container/ml/ModelsEvaluatorTester.java