code: def test_bias_monitor(
      sagemaker_session,
      scheduled_bias_monitor,
      endpoint_name,
      ground_truth_input,
  ):
      monitor = scheduled_bias_monitor
      monitor._wait_for_schedule_changes_to_apply()
  
      # stop it as soon as possible to avoid any execution
      monitor.stop_monitoring_schedule()
      _verify_monitoring_schedule(
          monitor=monitor,
          schedule_status="Stopped",
      )
      _verify_bias_job_description(
          sagemaker_session=sagemaker_session,
          monitor=monitor,
          endpoint_name=endpoint_name,
          ground_truth_input=ground_truth_input,
      )
  
      # attach to schedule
      monitoring_schedule_name = monitor.monitoring_schedule_name
      job_definition_name = monitor.job_definition_name
      monitor = ModelBiasMonitor.attach(
          monitor_schedule_name=monitor.monitoring_schedule_name,
          sagemaker_session=sagemaker_session,
      )
      assert (
          monitor.monitoring_schedule_name == monitoring_schedule_name
      )
      assert monitor.job_definition_name == job_definition_name
  
      # update schedule
      monitor.update_monitoring_schedule(
          max_runtime_in_seconds=UPDATED_MAX_RUNTIME_IN_SECONDS,
          schedule_cron_expression=UPDATED_CRON,
      )
      assert (
          monitor.monitoring_schedule_name == monitoring_schedule_name
      )
      assert monitor.job_definition_name != job_definition_name
      _verify_monitoring_schedule(
          monitor=monitor,
          schedule_status="Scheduled",
          schedule_cron_expression=UPDATED_CRON,
      )
      _verify_bias_job_description(
          sagemaker_session=sagemaker_session,
          monitor=monitor,
          endpoint_name=endpoint_name,
          ground_truth_input=ground_truth_input,
          max_runtime_in_seconds=UPDATED_MAX_RUNTIME_IN_SECONDS,
      )
  
      # delete schedule
      monitor.delete_monitoring_schedule()
  
imports: from __future__ import print_function, absolute_import
  from datetime import datetime, timedelta
  import json
  import numpy
  import os
  import pandas
  import pytest
  import tempfile
  import uuid
  import time
  import tests.integ
  import tests.integ.timeout
  from sagemaker import image_uris, utils
  from sagemaker.model_monitor import BiasAnalysisConfig, CronExpressionGenerator, DataCaptureConfig, EndpointInput, ExplainabilityAnalysisConfig, ModelBiasMonitor, ModelExplainabilityMonitor, BatchTransformInput, MonitoringDatasetFormat
  from sagemaker.s3 import S3Uploader
  from sagemaker.utils import unique_name_from_base
  from sagemaker.clarify import BiasConfig, DataConfig, ModelConfig, ModelPredictedLabelConfig, SHAPConfig
  from sagemaker.model import Model
  from tests.integ import DATA_DIR
  from tests.integ.retry import retries
label_desc: Use image node_id 13 for calling a global function with example usage: test_bias_monitor(sagemaker_session, scheduled_bias_monitor, endpoint_name, ground_truth_input) without return types