code: def scheduled_bias_monitor(
      sagemaker_session,
      bias_monitor,
      bias_config,
      endpoint_name,
      ground_truth_input,
  ):
      monitor_schedule_name = utils.unique_name_from_base(
          "bias-monitor"
      )
      bias_analysis_config = BiasAnalysisConfig(
          bias_config, headers=ALL_HEADERS, label=HEADER_OF_LABEL
      )
      s3_uri_monitoring_output = os.path.join(
          "s3://",
          sagemaker_session.default_bucket(),
          endpoint_name,
          monitor_schedule_name,
          "monitor_output",
      )
      # To include probability threshold
      endpoint_input = EndpointInput(
          endpoint_name=endpoint_name,
          destination=ENDPOINT_INPUT_LOCAL_PATH,
          start_time_offset=START_TIME_OFFSET,
          end_time_offset=END_TIME_OFFSET,
          probability_threshold_attribute=BIAS_PROBABILITY_THRESHOLD,
      )
      bias_monitor.create_monitoring_schedule(
          monitor_schedule_name=monitor_schedule_name,
          analysis_config=bias_analysis_config,
          endpoint_input=endpoint_input,
          ground_truth_input=ground_truth_input,
          output_s3_uri=s3_uri_monitoring_output,
          schedule_cron_expression=CRON,
      )
      return bias_monitor
  
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 11 for calling a global function with example usage: scheduled_bias_monitor(sagemaker_session, bias_monitor, bias_config, endpoint_name, ground_truth_input) and returns: bias_monitor