code: def test_compare_models_engines_local_args():
      """Tests the setting of engines for compare_models using local args."""
  
      juice_dataframe = pycaret.datasets.get_data("juice")
      exp = pycaret.classification.ClassificationExperiment()
  
      # init setup
      exp.setup(
          juice_dataframe,
          target="Purchase",
          remove_multicollinearity=True,
          multicollinearity_threshold=0.95,
          log_experiment=True,
          html=False,
          session_id=123,
          n_jobs=1,
      )
  
      # Default Model Engine ----
      assert exp.get_engine("lr") == "sklearn"
      model = exp.compare_models(include=["lr"])
  
      assert isinstance(
          model, sklearn.linear_model._logistic.LogisticRegression
      )
      # 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"}
      )
      assert isinstance(
          model,
          daal4py.sklearn.linear_model.logistic_path.LogisticRegression,
      )
      # Original engine should remain the same
      assert exp.get_engine("lr") == "sklearn"
      model = exp.compare_models(include=["lr"])
      assert isinstance(
          model, sklearn.linear_model._logistic.LogisticRegression
      )
  
file_path: pycaret/tests/test_classification_engines.py
imports: import daal4py
  import pytest
  import sklearn
  import pycaret.classification
  import pycaret.datasets
label_desc: Use image node_id 4 for calling a global function with example usage: test_compare_models_engines_local_args() without return types