code: def get_traffic_light_modules(
      monitoring_rules,
  ) -> list[Module | Pipeline]:
      """
      Expand all (wildcard) static traffic light bounds and apply them.
      Applied to both profiles and comparisons datasets
      """
      modules: list[Module | Pipeline] = [
          TrafficLightAlerts(
              read_key="profiles",
              rules=monitoring_rules,
              store_key="traffic_lights",
              expanded_rules_key="static_bounds",
          ),
          TrafficLightAlerts(
              read_key="comparisons",
              rules=monitoring_rules,
              store_key="traffic_lights",
              expanded_rules_key="static_bounds_comparisons",
          ),
          ApplyFunc(
              apply_to_key="traffic_lights",
              apply_funcs=[
                  {
                      "func": traffic_light_summary,
                      "axis": 1,
                      "suffix": "",
                  }
              ],
              assign_to_key="alerts",
              msg="Generating traffic light alerts summary.",
          ),
          AlertsSummary(read_key="alerts"),
      ]
      return modules
  
imports: from __future__ import annotations
  from popmon.alerting import AlertsSummary, DynamicBounds, StaticBounds, TrafficLightAlerts, traffic_light_summary
  from popmon.analysis.apply_func import ApplyFunc
  from popmon.analysis.comparison.hist_comparer import ExpandingHistComparer, PreviousHistComparer, ReferenceHistComparer, RollingHistComparer
  from popmon.analysis.functions import rolling_lr_zscore
  from popmon.analysis.profiling import HistProfiler
  from popmon.analysis.profiling.pull_calculator import ExpandingPullCalculator, ReferencePullCalculator, RefMedianMadPullCalculator, RollingPullCalculator
  from popmon.base import Module, Pipeline
  from popmon.config import Settings
  from popmon.hist.hist_splitter import HistSplitter
  from .timing import Timing
label_desc: Use image node_id 5 for calling a global function with example usage: get_traffic_light_modules(monitoring_rules) and returns: modules