code: def _clone_and_score_clusterer(clf, X, n_clusters):
      """Clones and scores a clustering model"""
      start = time.time()
      clf = clone(clf)
      setattr(clf, "n_clusters", n_clusters)
      return clf.fit(X).score(X), time.time() - start
  
file_path: sklearn-evaluation/src/sklearn_evaluation/plot/clustering.py
imports: import time
  import matplotlib.pyplot
  import numpy
  from sklearn.base import clone
  from sklearn.metrics import silhouette_samples, silhouette_score
  from sklearn.preprocessing import LabelEncoder
  from joblib import Parallel, delayed
  from sklearn_evaluation.telemetry import SKLearnEvaluationLogger
  from ploomber_core.exceptions import modify_exceptions
  from ploomber_core import deprecated
label_desc: Use image node_id 3 for calling a global function with example usage: _clone_and_score_clusterer(clf, X, n_clusters) and returns: clf,  unknown