public ImportedModel importModelAsNative(String modelName, String modelPath, ImportedMlModel.ModelType modelType) {
        try (FileInputStream inputStream = new FileInputStream(modelPath)) {
            Onnx.ModelProto model = Onnx.ModelProto.parseFrom(inputStream);
            return convertModel(modelName, modelPath, model, modelType);
        } catch (IOException e) {
            throw new IllegalArgumentException("Could not import ONNX model from '" + modelPath + "'", e);
        }
    }
Converts a ONNX model into a ranking expression and set of constants.

@author lesters
model-integration/src/main/java/ai/vespa/rankingexpression/importer/onnx/OnnxImporter.java