code: def test_unknown_constant_position():
      estimator = utils.StatsmodelsSklearnLikeWrapper(
          sm.GLS, dict(init=dict(hasconst=True))
      )
      _, __, estimator = utils.get_regression_model_trainer()(estimator)
  
      with pytest.raises(ValueError, match="Unknown constant position"):
          assemblers.StatsmodelsModelAssemblerSelector(estimator)
  
imports: import numpy
  import pytest
  import statsmodels.api
  from statsmodels.regression.process_regression import ProcessMLE
  from m2cgen import assemblers, ast
  from tests import utils
label_desc: Use image node_id 3 for calling a global function with example usage: test_unknown_constant_position() without return types