class_docstr: Abstract base class for time series clusterer.
  
  Parameters
  ----------
  n_clusters: int, defaults = None
      Number of clusters for model.
class_docstr_tok: ["Abstract","base","class","for","time","series","clusterer",".","Parameters","--","--","--","--","--","n_clusters",":","int",",","defaults","=","None","Number","of","clusters","for","model","."]
docstr: Predict the closest cluster each sample in X belongs to.
  
  Parameters
  ----------
  X : np.ndarray (2d or 3d array of shape (n_instances, series_length) or shape
      (n_instances, n_dimensions, series_length)) or pd.DataFrame (where each
      column is a dimension, each cell is a pd.Series (any number of dimensions,
      equal or unequal length series)).
      Time series instances to predict their cluster indexes.
  y: ignored, exists for API consistency reasons.
  
  Returns
  -------
  np.ndarray (1d array of shape (n_instances,))
      Index of the cluster each time series in X belongs to.
docstr_tok: ["Predict","the","closest","cluster","each","sample","in","X","belongs","to",".","Parameters","--","--","--","--","--","X",":","np.ndarray","(","2d","or","3d","array","of","shape","(","n_instances",",","series_length",")","or","shape","(","n_instances",",","n_dimensions",",","series_length",")",")","or","pd.DataFrame","(","where","each","column","is","a","dimension",",","each","cell","is","a","pd.Series","(","any","number","of","dimensions",",","equal","or","unequal","length","series",")",")",".","Time","series","instances","to","predict","their","cluster","indexes",".","y",":","ignored",",","exists","for","API","consistency","reasons",".","Returns","--","--","--","-","np.ndarray","(","1d","array","of","shape","(","n_instances",",",")",")","Index","of","the","cluster","each","time","series","in","X","belongs","to","."]
code: def predict(self, X: TimeSeriesInstances, y=None) -> np.ndarray:
      """Predict the closest cluster each sample in X belongs to.
  
      Parameters
      ----------
      X : np.ndarray (2d or 3d array of shape (n_instances, series_length) or shape
          (n_instances, n_dimensions, series_length)) or pd.DataFrame (where each
          column is a dimension, each cell is a pd.Series (any number of dimensions,
          equal or unequal length series)).
          Time series instances to predict their cluster indexes.
      y: ignored, exists for API consistency reasons.
  
      Returns
      -------
      np.ndarray (1d array of shape (n_instances,))
          Index of the cluster each time series in X belongs to.
      """
      self.check_is_fitted()
      X = self._check_clusterer_input(X)
      return self._predict(X)
  
imports: import time
  from typing import Any, Union
  import numpy
  import pandas
  from sktime.base import BaseEstimator
  from sktime.datatypes import check_is_scitype, convert_to, scitype_to_mtype
  from sktime.utils.sklearn import is_sklearn_transformer
  from sktime.utils.validation import check_n_jobs
  from sktime.utils.validation._dependencies import _check_estimator_deps
label_desc: Use image node_id 4 for calling the BaseClusterer obj's underlying member method code with example usage: obj.predict(X, y) and returns: self