code: def __init__(self, model):
      model_dump = model.booster_.dump_model()
      trees = [m["tree_structure"] for m in model_dump["tree_info"]]
  
      self.n_iter = len(trees) // model_dump["num_tree_per_iteration"]
      self.average_output = model_dump.get("average_output", False)
      self.objective_config_parts = model_dump.get(
          "objective", "custom"
      ).split(" ")
      self.objective_name = self.objective_config_parts[0]
  
      super().__init__(model, trees)
  
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 LightGBMModelAssembler object from inherited base classes: BaseTreeBoostingAssembler with example: obj = LightGBMModelAssembler(model)