code: def set_score_svm(
      max_weight,
      maxclass,
      has_proba,
      weights_are_all_positive_,
      classlabels,
      posclass,
      negclass,
  ):
      write_additional_scores = -1
      if len(classlabels) == 2:
          write_additional_scores = 2
          if not has_proba:
              if weights_are_all_positive_ and max_weight >= 0.5:
                  return classlabels[1], write_additional_scores
              if max_weight > 0 and not weights_are_all_positive_:
                  return classlabels[maxclass], write_additional_scores
          return classlabels[maxclass], write_additional_scores
      if max_weight > 0:
          return posclass, write_additional_scores
      return negclass, write_additional_scores
  
file_path: onnx/onnx/reference/ops/aionnxml/op_svm_classifier.py
imports: import numpy
  from onnx.reference.ops.aionnxml._common_classifier import compute_logistic, compute_probit, compute_softmax_zero, logistic, softmax, softmax_zero
  from onnx.reference.ops.aionnxml._op_run_aionnxml import OpRunAiOnnxMl
  from onnx.reference.ops.aionnxml.op_svm_helper import SVMCommon
label_desc: Use image node_id 4 for calling a global function with example usage: set_score_svm(max_weight, maxclass, has_proba, weights_are_all_positive_, classlabels, posclass, negclass) and returns: negclass,  write_additional_scores, classlabels,  write_additional_scores, posclass,  write_additional_scores, classlabels,  write_additional_scores, classlabels,  write_additional_scores