code: def get_distance(
      X: pd.DataFrame, Y: pd.DataFrame, alpha: float
  ) -> float:
      """Calculate within/between cluster distance."""
      return np.power(cdist(X, Y, "euclidean"), alpha).mean()
  
imports: import warnings
  from typing import Callable, Dict, List, Tuple
  import numpy
  import pandas
  from scipy.spatial.distance import cdist
  from sktime.transformations.base import BaseTransformer
label_desc: Use image node_id 1 for calling a global function with example usage: get_distance(X, Y, alpha) and returns: np