def test_ts_windowtransf_hierarchy(self, transforms):
        """Checking that supported transforms behave as expected:
        - implicitly applied to all components
        - passing explicitly all components
        """
        ts = helper_generate_ts_hierarchy(10)

        # renaming components based on transform parameters
        ts_tr = ts.window_transform(transforms=transforms)
        tr_prefix = (
            f"{transforms['mode']}_{transforms['function']}_{transforms['window']}_"
        )
        assert ts_tr.hierarchy == {
            tr_prefix + comp: [tr_prefix + "A"] for comp in ["B", "C"]
        }

        # keeping original components name
        ts_tr = ts.window_transform(transforms=transforms, keep_names=True)
        assert ts_tr.hierarchy == ts.hierarchy == {"C": ["A"], "B": ["A"]}
Checking that supported transforms behave as expected:
        - implicitly applied to all components
        - passing explicitly all components
        
darts/tests/dataprocessing/transformers/test_window_transformations.py