code: def test_class_enumerator_actual_module():
      module = ClassEnumerator(
          module=cuml.linear_model,
          exclude_classes=[
              cuml.LinearRegression,
              cuml.MBSGDClassifier,
              cuml.MBSGDRegressor,
          ],
          custom_constructors={
              "LogisticRegression": lambda: cuml.LogisticRegression(
                  handle=1
              )
          },
      )
      models = module.get_models()
      ref = {
          "ElasticNet": cuml.ElasticNet,
          "Lasso": cuml.Lasso,
          "LogisticRegression": lambda: cuml.LogisticRegression(
              handle=1
          ),
          "Ridge": cuml.Ridge,
      }
  
      assert (
          models["LogisticRegression"]().handle
          == ref["LogisticRegression"]().handle
      )
      models.pop("LogisticRegression")
      ref.pop("LogisticRegression")
      assert models == ref
  
imports: import cuml
  from cuml.testing.utils import ClassEnumerator
label_desc: Use image node_id 2 for calling a global function with example usage: test_class_enumerator_actual_module() without return types