code: def test_pipeline():
      logger = logging.getLogger()
      logger.addHandler(logging.StreamHandler())
      logger.setLevel(logging.INFO)
  
      log_pow_pipeline = Pipeline(
          modules=[
              LogTransformer(input_key="x", output_key="log_x"),
              PowerTransformer(
                  input_key="log_x", output_key="log_pow_x", power=2
              ),
          ]
      )
  
      pipeline = Pipeline(
          modules=[
              log_pow_pipeline,
              SumNormalizer(
                  input_key="weights", output_key="norm_weights"
              ),
              WeightedSum(
                  input_key="log_pow_x",
                  weight_key="norm_weights",
                  output_key="res",
              ),
          ],
          logger=logger,
      )
      return pipeline
  
imports: import logging
  import numpy
  import pytest
  from popmon.base import Module, Pipeline
label_desc: Use image node_id 1 for calling a global function with example usage: test_pipeline() and returns: pipeline