code: def test_pipeline_partial_inverse(self):
      series = constant_timeseries(value=0.0, length=3)
  
      def plus_ten(x):
          return x + 10
  
      mapper = Mapper(fn=plus_ten)
      mapper_inv = InvertibleMapper(
          fn=lambda x: x + 2, inverse_fn=lambda x: x - 2
      )
  
      series_plus_ten = mapper.transform(series)
  
      pipeline = Pipeline([mapper, mapper_inv])
  
      transformed = pipeline.transform(series)
  
      # should fail, since partial is False by default
      with pytest.raises(ValueError):
          pipeline.inverse_transform(transformed)
  
      back = pipeline.inverse_transform(transformed, partial=True)
  
      # while the +/- 2 is inverted, the +10 operation is not
      assert series_plus_ten == back
  
imports: from typing import Any, Mapping
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing import Pipeline
  from darts.dataprocessing.transformers import BaseDataTransformer, FittableDataTransformer, InvertibleDataTransformer, InvertibleMapper, Mapper
  from darts.utils.timeseries_generation import constant_timeseries
label_desc: Use image node_id 12 for calling the TestPipeline obj's underlying member method code with example usage: obj.test_pipeline_partial_inverse() and returns: unknown