code: def ts_transform(
      series: TimeSeries, params: Mapping[str, Any], **kwargs
  ) -> TimeSeries:
      lmbda = params["fitted"]
  
      vals = BoxCox.stack_samples(series)
      transformed_vals = np.stack(
          [
              boxcox(vals[:, i], lmbda=lmbda[i])
              for i in range(series.width)
          ],
          axis=1,
      )
      transformed_vals = BoxCox.unstack_samples(
          transformed_vals, series=series
      )
      return series.with_values(transformed_vals)
  
file_path: darts/darts/dataprocessing/transformers/boxcox.py
imports: from typing import Any, Mapping, Optional, Sequence, Union
  import numpy
  import pandas
  from scipy.special import inv_boxcox
  from scipy.stats import boxcox, boxcox_normmax
  from darts.logging import get_logger, raise_if
  from darts.timeseries import TimeSeries
  from .fittable_data_transformer import FittableDataTransformer
  from .invertible_data_transformer import InvertibleDataTransformer
label_desc: Use image node_id 3 for calling the BoxCox obj's underlying member method code with example usage: obj.ts_transform(series, params) and returns: series