code: def form_cluster_list(clusters, n) -> np.array:
      """Form a cluster list."""
      preds = np.zeros(n)
      for i in range(len(clusters)):
          for j in range(len(clusters[i])):
              preds[clusters[i][j]] = i
      return preds
  
imports: import numpy
  from sktime.clustering.k_means import TimeSeriesKMeans
  from sktime.clustering.k_medoids import TimeSeriesKMedoids
  from sktime.datasets import load_arrow_head
label_desc: Use image node_id 1 for calling a global function with example usage: form_cluster_list(clusters, n) and returns: preds