code: def __init__(self, model):
      super().__init__(model)
      const_idx = self.model.model.data.const_idx
      if const_idx is None and self.model.k_constant:
          raise ValueError("Unknown constant position")
      self.const_idx = const_idx
  
imports: import math
  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 StatsmodelsLinearModelAssembler object from inherited base classes: BaseLinearModelAssembler with example: obj = StatsmodelsLinearModelAssembler(model)