code: def __init__(self, model):
      underlying_model = type(model.model).__name__
      if underlying_model == "GLM":
          self.assembler = StatsmodelsGLMModelAssembler(model)
      elif underlying_model in {"GLS", "GLSAR", "OLS", "WLS"}:
          self.assembler = StatsmodelsLinearModelAssembler(model)
      else:
          raise NotImplementedError(
              f"Model '{underlying_model}' is not supported"
          )
  
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 StatsmodelsModelAssemblerSelector object from inherited base classes: ModelAssembler with example: obj = StatsmodelsModelAssemblerSelector(model)