class_docstr: Pairwise (squared) distance computation between local patches and
  shapelets
  
  # Input shape
      3D tensor with shape: `(batch_size, steps, features)`.
  # Output shape
      3D tensor with shape:
      `(batch_size, steps, n_shapelets)`
class_docstr_tok: ["Pairwise","(","squared",")","distance","computation","between","local","patches","and","shapelets","#","Input","shape","3D","tensor","with","shape",":","`","(","batch_size",",","steps",",","features",")","`",".","#","Output","shape","3D","tensor","with","shape",":","`","(","batch_size",",","steps",",","n_shapelets",")","`"]
code: def __init__(self, n_shapelets, X=None, **kwargs):
      self.n_shapelets = n_shapelets
      if X is None:
          self.initializer = "uniform"
      else:
          self.initializer = KMeansShapeletInitializer(X)
      super().__init__(**kwargs)
      self.input_spec = InputSpec(ndim=3)
  
imports: from tensorflow.keras.models import Model, model_from_json
  from tensorflow.keras.layers import InputSpec, Dense, Conv1D, Layer, Input, concatenate, add
  from tensorflow.keras.metrics import categorical_accuracy, categorical_crossentropy, binary_accuracy, binary_crossentropy
  from tensorflow.keras.utils import to_categorical
  from sklearn.base import ClassifierMixin, TransformerMixin
  from sklearn.utils import check_array, check_X_y
  from sklearn.utils.validation import check_is_fitted
  from sklearn.utils.multiclass import unique_labels
  from tensorflow.keras.regularizers import l2
  from tensorflow.keras.initializers import Initializer
  import tensorflow.keras.backend
  import numpy
  import tensorflow
  import warnings
  from ..utils import to_time_series_dataset, check_dims, ts_size
  from ..bases import BaseModelPackage, TimeSeriesBaseEstimator
  from ..clustering import TimeSeriesKMeans
  from ..preprocessing import TimeSeriesScalerMinMax
label_desc: Use image node_id 1 to create a new LocalSquaredDistanceLayer object from inherited base classes: Layer with example: obj = LocalSquaredDistanceLayer(n_shapelets, X)