code: def test_dependence_use_line_collection_bug():
      """Make sure a dependence plot does not crash."""
      # GH 3368
      sklearn = pytest.importorskip("sklearn")
  
      X, y = shap.datasets.california(n_points=10)
  
      X2 = shap.utils.sample(X, 2)
  
      model = sklearn.linear_model.LinearRegression()
      model.fit(X, y)
  
      explainer = shap.Explainer(model.predict, X2)
      shap_values = explainer(X2)
      shap.partial_dependence_plot(
          "MedInc",
          model.predict,
          X2,
          model_expected_value=True,
          feature_expected_value=True,
          ice=False,
          shap_values=shap_values[:1, :],
      )
  
imports: import matplotlib
  import numpy
  import pytest
  import shap
label_desc: Use image node_id 3 for calling a global function with example usage: test_dependence_use_line_collection_bug() without return types