code: def test_default_monitor_monitoring_execution_interactions(
      sagemaker_session, default_monitoring_schedule_name
  ):
      my_attached_monitor = DefaultModelMonitor.attach(
          monitor_schedule_name=default_monitoring_schedule_name,
          sagemaker_session=sagemaker_session,
      )
      description = my_attached_monitor.describe_schedule()
      assert (
          description["MonitoringScheduleName"]
          == default_monitoring_schedule_name
      )
  
      executions = my_attached_monitor.list_executions()
      assert len(executions) > 0
  
      with open(
          os.path.join(tests.integ.DATA_DIR, "monitor/statistics.json"),
          "r",
      ) as f:
          file_body = f.read()
  
      file_name = "statistics.json"
      desired_s3_uri = os.path.join(
          executions[-1].output.destination, file_name
      )
  
      S3Uploader.upload_string_as_file_body(
          body=file_body,
          desired_s3_uri=desired_s3_uri,
          sagemaker_session=sagemaker_session,
      )
  
      statistics = my_attached_monitor.latest_monitoring_statistics()
      assert statistics.body_dict["dataset"]["item_count"] == 418
  
      with open(
          os.path.join(
              tests.integ.DATA_DIR, "monitor/constraint_violations.json"
          ),
          "r",
      ) as f:
          file_body = f.read()
  
      file_name = "constraint_violations.json"
      desired_s3_uri = os.path.join(
          executions[-1].output.destination, file_name
      )
  
      S3Uploader.upload_string_as_file_body(
          body=file_body,
          desired_s3_uri=desired_s3_uri,
          sagemaker_session=sagemaker_session,
      )
  
      constraint_violations = (
          my_attached_monitor.latest_monitoring_constraint_violations()
      )
      assert (
          constraint_violations.body_dict["violations"][0][
              "feature_name"
          ]
          == "store_and_fwd_flag"
      )
  
imports: from __future__ import absolute_import
  import json
  import os
  import uuid
  import time
  import pytest
  import tests.integ
  import tests.integ.timeout
  from sagemaker.s3 import S3Uploader
  from datetime import datetime, timedelta
  from tests.integ import DATA_DIR
  from sagemaker.model_monitor import DatasetFormat
  from sagemaker.model_monitor import MonitoringDatasetFormat
  from sagemaker.model_monitor import NetworkConfig, Statistics, Constraints
  from sagemaker.model_monitor import ModelMonitor
  from sagemaker.model_monitor import DefaultModelMonitor
  from sagemaker.model_monitor import MonitoringOutput
  from sagemaker.model_monitor import DataCaptureConfig
  from sagemaker.model_monitor import BatchTransformInput
  from sagemaker.model_monitor import DataQualityMonitoringConfig
  from sagemaker.model_monitor import DataQualityDistributionConstraints
  from sagemaker.model_monitor.data_capture_config import _MODEL_MONITOR_S3_PATH
  from sagemaker.model_monitor.data_capture_config import _DATA_CAPTURE_S3_PATH
  from sagemaker.model_monitor import CronExpressionGenerator
  from sagemaker.model_monitor.monitoring_alert import MonitoringAlertSummary
  from sagemaker.processing import ProcessingInput
  from sagemaker.processing import ProcessingOutput
  from sagemaker.tensorflow.model import TensorFlowModel
  from sagemaker.utils import unique_name_from_base
  from tests.integ.kms_utils import get_or_create_kms_key
  from tests.integ.retry import retries
label_desc: Use image node_id 20 for calling a global function with example usage: test_default_monitor_monitoring_execution_interactions(sagemaker_session, default_monitoring_schedule_name) without return types