code: def _add_anomaly_series_to_curve(
      anomaly,
      ax,
      s,
      anomaly_color,
      anomaly_marker,
      anomaly_markersize,
      anomaly_label,
  ):
      "Add anomalies represented by a binary series as markers on a curve"
      anomaly_curve = s.loc[anomaly == 1]
      # anomaly_curve.plot(
      #     ax=ax,
      #     linewidth=0,
      #     marker=anomaly_marker,
      #     markersize=anomaly_markersize,
      #     color=anomaly_color,
      #     label=anomaly_label,
      # )
      ax.plot_date(
          anomaly_curve.index,
          anomaly_curve,
          fmt="-",
          linewidth=0,
          marker=anomaly_marker,
          markersize=anomaly_markersize,
          color=anomaly_color,
          label=anomaly_label,
      )
  
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 6 for calling a global function with example usage: _add_anomaly_series_to_curve(anomaly, ax, s, anomaly_color, anomaly_marker, anomaly_markersize, anomaly_label) without return types