code: def _test_monitor_update_alert(
      quality_monitor: ModelMonitor,
      sagemaker_session: sagemaker.session.Session,
      alert_name: str,
      data_points_to_alert: int,
      eval_period: int,
  ):
      quality_monitor.update_monitoring_alert(
          monitoring_alert_name=alert_name,
          data_points_to_alert=data_points_to_alert,
          evaluation_period=eval_period,
      )
  
      sagemaker_session.update_monitoring_alert.assert_called_with(
          monitoring_schedule_name=quality_monitor.monitoring_schedule_name,
          monitoring_alert_name=alert_name,
          data_points_to_alert=data_points_to_alert,
          evaluation_period=eval_period,
      )
  
imports: from __future__ import absolute_import
  import copy
  import time
  from typing import Union
  import sagemaker
  import pytest
  from mock import Mock, patch, MagicMock
  from sagemaker.model_monitor import ModelMonitor, Constraints, CronExpressionGenerator, DefaultModelMonitor, EndpointInput, BatchTransformInput, ModelQualityMonitor, Statistics, MonitoringOutput, DataQualityMonitoringConfig, DataQualityDistributionConstraints
  from sagemaker.model_monitor.monitoring_alert import MonitoringAlertSummary, MonitoringAlertHistorySummary, MonitoringAlertActions, ModelDashboardIndicatorAction
  from sagemaker.network import NetworkConfig
  from sagemaker.model_monitor.dataset_format import MonitoringDatasetFormat, DatasetFormat
  from tests.unit import SAGEMAKER_CONFIG_MONITORING_SCHEDULE
label_desc: Use image node_id 23 for calling a global function with example usage: _test_monitor_update_alert(quality_monitor, sagemaker_session, alert_name, data_points_to_alert, eval_period) without return types