code: def __init__(self, model):
      model_dump = model.get_booster().get_dump(dump_format="json")
      weights = json.loads(model_dump[0])["weight"]
      self._bias = json.loads(model_dump[0])["bias"]
      super().__init__(
          model, weights, base_score=model.get_params()["base_score"]
      )
  
imports: import json
  import math
  import numpy
  from m2cgen import ast
  from m2cgen.assemblers import utils
  from m2cgen.assemblers.base import ModelAssembler
  from m2cgen.assemblers.linear import _linear_to_ast
label_desc: Use image node_id 1 to create a new XGBoostLinearModelAssembler object from inherited base classes: BaseBoostingAssembler with example: obj = XGBoostLinearModelAssembler(model)