code: def test_apply_monitoring_business_rules():
      datastore = {"test_data": pytest.test_comparer_df}
  
      conf = {
          "monitoring_rules": {
              "the_feature:mae": [8, 4, 2, 0.15],
              "mse": [0.2, 0.11, 0.09, 0],
              "mae": [1, 0, 0, 0],
              "*_pull": [7, 4, -4, -7],
          }
      }
  
      pipeline = TrafficLightAlerts(
          read_key="test_data",
          rules=conf["monitoring_rules"],
          store_key="tl",
      )
  
      datastore = pipeline.transform(datastore)
  
      assert "tl" in datastore
      test_data = datastore["tl"]
  
      assert "the_feature" in test_data
      output = test_data["the_feature"]
      assert output["mae"].tolist() == [2, 2, 2, 1, 2]
      assert output["mse"].tolist() == [0] * 5
  
      assert "dummy_feature" in test_data
      output = test_data["dummy_feature"]
      assert output["mae"].tolist() == [1] * 5
  
file_path: popmon/tests/popmon/alerting/test_apply_tl_bounds.py
imports: import numpy
  import pandas
  import pytest
  from popmon.alerting import ComputeTLBounds, DynamicBounds, StaticBounds, TrafficLightAlerts, pull_bounds, traffic_light
  from popmon.analysis.apply_func import ApplyFunc
  from popmon.analysis.functions import expanding_mean, expanding_std, pull, rolling_lr, rolling_mean
  from popmon.base import Pipeline
  from popmon.config import Settings
  from popmon.visualization.section_generator import SectionGenerator
label_desc: Use image node_id 3 for calling a global function with example usage: test_apply_monitoring_business_rules() without return types