class_docstr: Chain multiple transformations together.
class_docstr_tok: ["Chain","multiple","transformations","together","."]
code: def __post_init__(self) -> None:
      transformations = []
  
      for transformation in self.transformations:
          if isinstance(transformation, Identity):
              continue
          elif isinstance(transformation, Chain):
              transformations.extend(transformation.transformations)
          else:
              assert isinstance(transformation, Transformation)
              transformations.append(transformation)
  
      self.transformations = transformations
      self.__init_passed_kwargs__ = {"transformations": transformations}
  
imports: import abc
  from dataclasses import dataclass
  from typing import Callable, Iterable, Iterator, List
  from gluonts.core.component import equals, validated
  from gluonts.dataset.common import DataEntry, Dataset
  from gluonts.env import env
label_desc: Use image node_id 1 for calling the Chain obj's underlying member method code with example usage: obj.__post_init__() without return types