code: def test_pipeline():
      s = pd.Series(
          [0, 1, 2, 3, 2, 1] * 5
          + [0, 1, 2, 4, 2, 1]
          + [0, 1, 2, 3, 2, 1] * 4,
          index=pd.date_range(start="2017-1-1", periods=60, freq="D"),
      )
      my_pipe = Pipeline(
          [
              (
                  "deseasonal_residual",
                  transformer.ClassicSeasonalDecomposition(freq=6),
              ),
              (
                  "abs_residual",
                  transformer.CustomizedTransformer1D(
                      transform_func=abs
                  ),
              ),
              ("ad", detector.QuantileAD(high=0.99)),
          ]
      )
  
      my_pipe.fit_detect(s)
      assert (
          my_pipe.score(
              s,
              pd.Series([0] * 33 + [1] + [0] * 26, index=s.index),
              scoring="recall",
          )
          == 1
      )
      assert (
          my_pipe.score(
              s,
              pd.Series([0] * 33 + [1] + [0] * 26, index=s.index),
              scoring="precision",
          )
          == 1
      )
      assert (
          my_pipe.score(
              s,
              pd.Series([0] * 33 + [1] + [0] * 26, index=s.index),
              scoring="f1",
          )
          == 1
      )
      assert (
          my_pipe.score(
              s,
              pd.Series([0] * 33 + [1] + [0] * 26, index=s.index),
              scoring="iou",
          )
          == 1
      )
  
      assert my_pipe.get_params() == {
          "deseasonal_residual": {"freq": 6, "trend": False},
          "abs_residual": {
              "fit_func": None,
              "fit_func_params": None,
              "transform_func": abs,
              "transform_func_params": None,
          },
          "ad": {"high": 0.99, "low": None},
      }
  
file_path: adtk/tests/test_pipe.py
imports: import numpy
  import pandas
  import pytest
  from sklearn.linear_model import LinearRegression
  import adtk.aggregator
  import adtk.detector
  import adtk.transformer
  from adtk.pipe import Pipeline, Pipenet
label_desc: Use image node_id 8 for calling a global function with example usage: test_pipeline() without return types