code: def test_update_model_monitor_error_with_one_time_schedule(
      data_quality_monitor,
      batch_transform_input=BatchTransformInput(
          data_captured_destination_s3_uri=DATA_CAPTURED_S3_URI,
          destination=SCHEDULE_DESTINATION,
          dataset_format=MonitoringDatasetFormat.csv(header=False),
      ),
  ):
      try:
          data_quality_monitor.create_monitoring_schedule(
              schedule_cron_expression=CronExpressionGenerator.now(),
              batch_transform_input=batch_transform_input,
          )
      except ValueError as error:
          assert (
              "Both data_analysis_start_time and data_analysis_end_time are required"
              in str(error)
          )
  
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 44 for calling a global function with example usage: test_update_model_monitor_error_with_one_time_schedule(data_quality_monitor, batch_transform_input) without return types