code: def test_from_results_call(monkeypatch):
      mock = Mock()
      monkeypatch.setattr(cl, "silhouette_analysis_from_results", mock)
      clf = KMeans()
      fig, ax = plt.subplots(1, 1)
      ax = plot.silhouette_analysis(
          X, clf, range_n_clusters=[2, 3], ax=ax
      )
      assert mock.call_count == 2
      assert mock.return_value == ax
  
imports: import pytest
  import numpy
  from unittest.mock import Mock
  import matplotlib.pyplot
  from matplotlib.testing.decorators import image_comparison
  from sklearn.tree import DecisionTreeClassifier
  from sklearn.cluster import KMeans, MiniBatchKMeans
  from sklearn.datasets import load_iris
  from sklearn_evaluation import plot
  import sklearn_evaluation.plot.clustering
  from ploomber_core.warnings import PloomberDeprecationWarning
label_desc: Use image node_id 24 for calling a global function with example usage: test_from_results_call(monkeypatch) without return types