class_docstr: Tests that data transformers inheriting from both `FittableDataTransformer` and
  `InvertibleDataTransformer` classes behave correctly when `global_fit` attribute
  is `False`.
class_docstr_tok: ["Tests","that","data","transformers","inheriting","from","both","`","FittableDataTransformer","`","and","`","InvertibleDataTransformer","`","classes","behave","correctly","when","`","global_fit","`","attribute","is","`","False","`","."]
docstr: Tests that `stack_samples` and `unstack_samples` correctly
  implemented when considering multi-sample timeseries.
docstr_tok: ["Tests","that","`","stack_samples","`","and","`","unstack_samples","`","correctly","implemented","when","considering","multi-sample","timeseries","."]
code: def test_input_transformed_multiple_samples(self):
      """
      Tests that `stack_samples` and `unstack_samples` correctly
      implemented when considering multi-sample timeseries.
      """
      test_input = constant_timeseries(value=1, length=10)
      test_input = test_input.concatenate(
          constant_timeseries(value=2, length=10), axis="sample"
      )
  
      mock = self.DataTransformerMock(
          scale=2, translation=10, stack_samples=True
      )
      transformed = mock.fit_transform(test_input)
  
      # 2 * 1 + 10 = 12
      expected = constant_timeseries(value=12, length=10)
      # 2 * 2 + 10 = 14
      expected = expected.concatenate(
          constant_timeseries(value=14, length=10), axis="sample"
      )
      assert transformed == expected
      # Should get input back:
      inv = mock.inverse_transform(transformed)
      assert inv == test_input
  
file_path: darts/darts/tests/dataprocessing/transformers/test_invertible_fittable_data_transformer.py
imports: from typing import Any, Mapping, Sequence, Union
  import numpy
  from darts import TimeSeries
  from darts.dataprocessing.transformers.fittable_data_transformer import FittableDataTransformer
  from darts.dataprocessing.transformers.invertible_data_transformer import InvertibleDataTransformer
  from darts.utils.timeseries_generation import constant_timeseries
label_desc: Use image node_id 3 for calling the TestLocalFittableInvertibleDataTransformer obj's underlying member method code with example usage: obj.test_input_transformed_multiple_samples() without return types