code: def _add_anomaly_list_to_axes(
      anomaly, ax, anomaly_color, anomaly_alpha, anomaly_label
  ):
      "Add a list of anomalous event to an axes as spans"
      for i, event in enumerate(anomaly):
          ax.axvspan(
              xmin=event[0],
              xmax=event[1],
              color=anomaly_color,
              alpha=anomaly_alpha,
              label=(anomaly_label if i == 0 else None),
          )
  
file_path: adtk/src/adtk/visualization/_visualization.py
imports: import matplotlib.pyplot
  import numpy
  import pandas
  from pandas.plotting import register_matplotlib_converters
  from ..data import to_events, to_labels, validate_events
label_desc: Use image node_id 5 for calling a global function with example usage: _add_anomaly_list_to_axes(anomaly, ax, anomaly_color, anomaly_alpha, anomaly_label) without return types