class_docstr: Applies a series of data transformations sequentially.
class_docstr_tok: ["Applies","a","series","of","data","transformations","sequentially","."]
code: def _extract_nontrivial_transforms(
      self, transform: TransformBase
  ) -> List[TransformBase]:
      if isinstance(transform, type(self)):
          transforms = sum(
              [
                  self._extract_nontrivial_transforms(t)
                  for t in transform.transforms
              ],
              [],
          )
      else:
          transforms = [transform]
      return [t for t in transforms if not isinstance(t, Identity)]
  
imports: from collections import OrderedDict
  import logging
  from typing import List
  from merlion.transform.base import TransformBase, InvertibleTransformBase, Identity
  from merlion.transform.factory import TransformFactory
  from merlion.utils import TimeSeries
label_desc: Use image node_id 2 for calling the TransformSequence obj's underlying member method code with example usage: obj._extract_nontrivial_transforms(transform) and returns: unknown