code: def test_compare_models_engines_local_args():
      """Tests the setting of engines for compare_models using local args."""
  
      boston_dataframe = pycaret.datasets.get_data("boston")
      exp = pycaret.regression.RegressionExperiment()
  
      exp.setup(
          data=boston_dataframe,
          target="medv",
          remove_multicollinearity=True,
          multicollinearity_threshold=0.95,
          log_experiment=True,
          html=False,
          session_id=123,
          n_jobs=1,
          experiment_name=uuid.uuid4().hex,
      )
  
      # Default Model Engine ----
      assert exp.get_engine("lr") == "sklearn"
      model = exp.compare_models(include=["lr"])
  
      parent_library = model.__module__
      assert parent_library.startswith("sklearn.")
      # Original engine should remain the same
      assert exp.get_engine("lr") == "sklearn"
  
      # Override model engine locally ----
      model = exp.compare_models(
          include=["lr"], engine={"lr": "sklearnex"}
      )
      parent_library = model.__module__
      assert parent_library.startswith(
          "sklearnex"
      ) or parent_library.startswith("daal4py")
      # Original engine should remain the same
      assert exp.get_engine("lr") == "sklearn"
      model = exp.compare_models(include=["lr"])
      parent_library = model.__module__
      assert parent_library.startswith("sklearn.")
  
file_path: pycaret/tests/test_regression_engines.py
imports: import uuid
  import pytest
  import pycaret.datasets
  import pycaret.regression
label_desc: Use image node_id 4 for calling a global function with example usage: test_compare_models_engines_local_args() without return types