code: def _get_cluster_values(
      cluster_indexes: np.ndarray, X: np.ndarray, k: int
  ):
      ts_in_center = []
      for i in range(k):
          curr_indexes = np.where(cluster_indexes == i)[0]
          ts_in_center.append(X[curr_indexes])
  
      return ts_in_center
  
file_path: sktime/sktime/clustering/utils/plotting/_plot_partitions.py
imports: import numpy
  import pandas
  from sktime.clustering.base import TimeSeriesInstances
  from sktime.clustering.partitioning import TimeSeriesLloyds
  from sktime.datatypes import convert_to
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: _get_cluster_values(cluster_indexes, X, k) and returns: ts_in_center