class_docstr: Invert a series-to-series transformation.
  
  Switches `transform` and `inverse_transform`, leaves `fit` and `update` the same.
  
  Parameters
  ----------
  transformer : sktime transformer, must transform Series input to Series output
      this is a "blueprint" transformer, state does not change when `fit` is called
  
  Attributes
  ----------
  transformer_: transformer,
      this clone is fitted when `fit` is called and provides `transform` and inverse
  
  Examples
  --------
  >>> from sktime.datasets import load_airline
  >>> from sktime.transformations.compose import InvertTransform
  >>> from sktime.transformations.series.exponent import ExponentTransformer
  >>>
  >>> inverse_exponent = InvertTransform(ExponentTransformer(power=3))
  >>> X = load_airline()
  >>> Xt = inverse_exponent.fit_transform(X)  # computes 3rd square root
code: def __init__(self, transformer):
      self.transformer = transformer
  
      super().__init__()
  
      self.transformer_ = transformer.clone()
  
      # should be all tags, but not fit_is_empty
      #   (_fit should not be skipped)
      tags_to_clone = [
          "scitype:transform-input",
          "scitype:transform-output",
          "scitype:instancewise",
          "X_inner_mtype",
          "y_inner_mtype",
          "handles-missing-data",
          "X-y-must-have-same-index",
          "transform-returns-same-time-index",
          "skip-inverse-transform",
      ]
      self.clone_tags(transformer, tag_names=tags_to_clone)
  
      if not transformer.get_tag("capability:inverse_transform", False):
          warn(
              "transformer does not have capability to inverse transform, "
              "according to capability:inverse_transform tag. "
              "If the tag was correctly set, this transformer will likely crash",
              obj=self,
          )
      inner_output = transformer.get_tag("scitype:transform-output")
      if transformer.get_tag("scitype:transform-output") != "Series":
          warn(
              f"transformer output is not Series but {inner_output}, "
              "according to scitype:transform-output tag. "
              "The InvertTransform wrapper supports only Series output, therefore"
              " this transformer will likely crash on input.",
              obj=self,
          )
  
imports: from sktime.transformations._delegate import _DelegatedTransformer
  from sktime.utils.warnings import warn
label_desc: Use image node_id 1 to create a new InvertTransform object from inherited base classes: _DelegatedTransformer with example: obj = InvertTransform(transformer)