def METHOD_NAME(
    series: TimeSeries, params: Mapping[str, Any], *args, **kwargs
) -> TimeSeries:
    transformer = params["fitted"]
    tr_out = transformer.inverse_transform(Scaler.stack_samples(series))
    inv_transformed_vals = Scaler.unstack_samples(tr_out, series=series)
    return series.with_values(inv_transformed_vals)