code: def test_data_quality_monitor_invalid_create(
      data_quality_monitor, sagemaker_session
  ):
      # invalid: can not create new job definition if one already exists
      data_quality_monitor.job_definition_name = JOB_DEFINITION_NAME
      with pytest.raises(ValueError):
          _test_data_quality_monitor_create_schedule(
              data_quality_monitor=data_quality_monitor,
              sagemaker_session=sagemaker_session,
              constraints=CONSTRAINTS,
              statistics=STATISTICS,
          )
  
      # invalid: can not create new schedule if one already exists
      data_quality_monitor.job_definition_name = None
      data_quality_monitor.monitoring_schedule_name = SCHEDULE_NAME
      with pytest.raises(ValueError):
          _test_data_quality_monitor_create_schedule(
              data_quality_monitor=data_quality_monitor,
              sagemaker_session=sagemaker_session,
              constraints=CONSTRAINTS,
              statistics=STATISTICS,
          )
  
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 13 for calling a global function with example usage: test_data_quality_monitor_invalid_create(data_quality_monitor, sagemaker_session) without return types