@SuppressWarnings("deprecation")
    private static Map<String, Model> createModels(String path) {
        RankProfilesConfig config = ConfigGetter.getConfig(RankProfilesConfig.class, fileConfigId(path, "rank-profiles.cfg"));
        RankingConstantsConfig constantsConfig = ConfigGetter.getConfig(RankingConstantsConfig.class, fileConfigId(path, "ranking-constants.cfg"));
        RankingExpressionsConfig expressionsConfig = ConfigGetter.getConfig(RankingExpressionsConfig.class, fileConfigId(path, "ranking-expressions.cfg"));
        OnnxModelsConfig onnxModelsConfig = ConfigGetter.getConfig(OnnxModelsConfig.class, fileConfigId(path, "onnx-models.cfg"));

        Map<String, File> fileMap = new HashMap<>();
        for (var cfgEntry : onnxModelsConfig.model()) {
            fileMap.put(cfgEntry.fileref().value(), new File(path + cfgEntry.fileref().value()));
        }
        for (var cfgEntry : constantsConfig.constant()) {
            fileMap.put(cfgEntry.fileref().value(), new File(path + cfgEntry.fileref().value()));
        }
        for (var cfgEntry : expressionsConfig.expression()) {
            fileMap.put(cfgEntry.fileref().value(), new File(path + cfgEntry.fileref().value()));
        }
        var fileAcquirer = MockFileAcquirer.returnFiles(fileMap);

        return new RankProfilesConfigImporter(fileAcquirer, OnnxRuntime.testInstance())
                       .importFrom(config, constantsConfig, expressionsConfig, onnxModelsConfig);
    }
Helper for testing model import and evaluation

@author bratseth
model-evaluation/src/test/java/ai/vespa/models/evaluation/ModelTester.java