code: def test_inverse_raise_exception(self):
      # given
      mock = self.DataTransformerMock1()
      p = Pipeline([mock])
  
      # when & then
      with pytest.raises(ValueError):
          p.inverse_transform(None)
  
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 2 for calling the TestPipeline obj's underlying member method code with example usage: obj.test_inverse_raise_exception() without return types