@Override
    public void process(boolean validate, boolean documentsOnly) {
        if (documentsOnly) return;
        for (RankProfile profile : rankProfileRegistry.rankProfilesOf(schema)) {
            if (profile.getFirstPhaseRanking() != null) {
                process(profile.getFirstPhaseRanking().getRoot(),  profile);
            }
            if (profile.getSecondPhaseRanking() != null) {
                process(profile.getSecondPhaseRanking().getRoot(), profile);
            }
            if (profile.getGlobalPhaseRanking() != null) {
                process(profile.getGlobalPhaseRanking().getRoot(), profile);
            }
            for (Map.Entry<String, RankProfile.RankingExpressionFunction> function : profile.getFunctions().entrySet()) {
                process(function.getValue().function().getBody().getRoot(), profile);
            }
            for (ReferenceNode feature : profile.getSummaryFeatures()) {
                process(feature, profile);
            }
        }
    }
Processes ONNX ranking features of the form:

    onnx("files/model.onnx", "path/to/output:1")

And generates an "onnx-model" configuration as if it was defined in the profile:

  onnx-model files_model_onnx {
      file:  "files/model.onnx"
  }

Inputs and outputs are resolved in OnnxModelTypeResolver, which must be
processed after this.

@author lesters
config-model/src/main/java/com/yahoo/schema/processing/OnnxModelConfigGenerator.java