code: def add(self, name: str, value: Any) -> None:
      if isinstance(value, list) and name not in {"kernel_params"}:
          if name in {"vectors_per_class"}:
              value = np.array(value, dtype=np.int64)
          else:
              value = np.array(value, dtype=np.float32)
      setattr(self, name, value)
  
file_path: onnx/onnx/reference/ops/aionnxml/op_svm_helper.py
imports: from typing import Any
  import numpy
label_desc: Use image node_id 2 for calling the SVMAttributes obj's underlying member method code with example usage: obj.add(name, value) without return types