code: def test_ransac_custom_base_estimator():
      base_estimator = DecisionTreeRegressor(
          random_state=1, max_depth=1
      )
      estimator = RANSACRegressor(
          base_estimator=base_estimator, random_state=1
      )
      estimator.fit([[1], [2]], [1, 2])
  
      assembler = RANSACModelAssembler(estimator)
      actual = assembler.assemble()
  
      expected = ast.IfExpr(
          ast.CompExpr(
              ast.FeatureRef(0), ast.NumVal(1.5), ast.CompOpType.LTE
          ),
          ast.NumVal(1.0),
          ast.NumVal(2.0),
      )
  
      assert cmp_exprs(actual, expected)
  
file_path: m2cgen/tests/assemblers/test_meta.py
imports: import pytest
  from sklearn.dummy import DummyRegressor
  from sklearn.linear_model import RANSACRegressor
  from sklearn.tree import DecisionTreeRegressor
  from m2cgen import ast
  from m2cgen.assemblers import RANSACModelAssembler
  from tests.utils import cmp_exprs
label_desc: Use image node_id 1 for calling a global function with example usage: test_ransac_custom_base_estimator() without return types