code: def test_with_hypothesis(params, interactions_method):
      X, y, model, preds = params
      explainer = TreeExplainer(model=model)
      shap_values = explainer.shap_values(X)
      shap_interactions = explainer.shap_interaction_values(
          X, method=interactions_method
      )
      check_efficiency(explainer.expected_value, preds, shap_values)
      check_efficiency_interactions(
          explainer.expected_value, preds, shap_interactions
      )
  
      # Interventional
      explainer = TreeExplainer(
          model=model, data=X.sample(n=15, replace=True, random_state=0)
      )
      interventional_shap_values = explainer.shap_values(X)
      check_efficiency(
          explainer.expected_value, preds, interventional_shap_values
      )
  
imports: from cuml.testing.utils import as_type
  import cuml
  from cuml.ensemble import RandomForestClassifier
  from cuml.ensemble import RandomForestRegressor
  from cuml.common.exceptions import NotFittedError
  from cuml.internals.import_utils import has_sklearn
  from cuml.internals.import_utils import has_lightgbm, has_shap
  from cuml.explainer.tree_shap import TreeExplainer
  from hypothesis import given, settings, assume, HealthCheck, strategies
  from cuml.internals.safe_imports import gpu_only_import
  import json
  import pytest
  import treelite
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 21 for calling a global function with example usage: test_with_hypothesis(params, interactions_method) without return types