code: def _verify_execution_status(monitor):
      _wait_for_completion(monitor)
      executions = monitor.list_executions()
      assert len(executions) > 0
      schedule_desc = monitor.describe_schedule()
      execution_summary = schedule_desc.get(
          "LastMonitoringExecutionSummary"
      )
      last_execution_status = execution_summary[
          "MonitoringExecutionStatus"
      ]
      assert last_execution_status in [
          "Completed",
          "CompletedWithViolations",
      ]
  
imports: from __future__ import print_function, absolute_import
  import tempfile
  from datetime import datetime, timedelta
  import json
  import os
  import numpy
  import pytest
  import pandas
  import tests.integ
  import tests.integ.timeout
  from sagemaker import image_uris, utils
  from sagemaker.model_monitor import CronExpressionGenerator, DataCaptureConfig, EndpointInput, ModelQualityMonitor, DatasetFormat
  from sagemaker.s3 import S3Uploader
  from sagemaker.utils import unique_name_from_base
  from sagemaker.model import Model
  from tests.integ import DATA_DIR
  from tests.integ.retry import retries
label_desc: Use image node_id 14 for calling a global function with example usage: _verify_execution_status(monitor) without return types