code: def _get_alpha_data(data: np.ndarray, kwargs) -> Union[float, np.ndarray]:
      
      alpha = kwargs.pop("alpha", 1)
      if hasattr(alpha, "__call__"):
          return np.vectorize(alpha)(data)
      return alpha
docs: Get alpha values for all data points.
  
      Parameters
      ----------
      alpha: Callable or float
          This can be a fixed value or a function of the data.