code: def _transform(self, X, y=None):
      """Transform X and return a transformed version.
  
      private _transform containing the core logic, called from transform
  
      Parameters
      ----------
      X : 2D np.ndarray
          Data to be transformed
      y : ignored argument for interface compatibility
          Additional data, e.g., labels for transformation
  
      Returns
      -------
      Xt : 1D np.ndarray
          transformed version of X
          Matrix Profile of time series as output with length as
          (n_timepoints-window_length+1)
      """
      import stumpy
  
      X = X.flatten()
      Xt = stumpy.stump(X, self.window_length)
      Xt = Xt[:, 0].astype("float")
      return Xt
  
imports: from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 2 for calling the MatrixProfileTransformer obj's underlying member method code with example usage: obj._transform(X, y) and returns: Xt