code: def ts_transform(
      series: TimeSeries, params: Mapping[str, Any], **kwargs
  ) -> TimeSeries:
      transformer = params["fitted"]
  
      tr_out = transformer.transform(Scaler.stack_samples(series))
  
      transformed_vals = Scaler.unstack_samples(tr_out, series=series)
  
      return series.with_values(transformed_vals)
  
file_path: darts/darts/dataprocessing/transformers/scaler.py
imports: from copy import deepcopy
  from typing import Any, Mapping, Sequence, Union
  import numpy
  from sklearn.preprocessing import MinMaxScaler
  from darts.logging import get_logger, raise_log
  from darts.timeseries import TimeSeries
  from .fittable_data_transformer import FittableDataTransformer
  from .invertible_data_transformer import InvertibleDataTransformer
label_desc: Use image node_id 2 for calling the Scaler obj's underlying member method code with example usage: obj.ts_transform(series, params) and returns: series