code: def __init__(self, model):
      super().__init__(model)
  
      kernel_type = model.kernel
      supported_kernels = self._get_supported_kernels()
      if kernel_type not in supported_kernels:
          raise ValueError(f"Unsupported kernel type '{kernel_type}'")
      self._kernel_fun = supported_kernels[kernel_type]
  
      gamma = self._get_gamma()
      self._gamma_expr = ast.NumVal(gamma)
      self._neg_gamma_expr = ast.NumVal(-gamma)
  
      self._output_size = self._get_output_size()
  
imports: import numpy
  from m2cgen import ast
  from m2cgen.assemblers import utils
  from m2cgen.assemblers.base import ModelAssembler
label_desc: Use image node_id 1 to create a new BaseSVMModelAssembler object from inherited base classes: ModelAssembler with example: obj = BaseSVMModelAssembler(model)