code: def test_list_monitors(default_model_monitor_attach, *attach_methods):
      sagemaker_session = empty_sagemaker_session()
      sagemaker_session.list_monitoring_schedules = Mock(
          return_value={
              "MonitoringScheduleSummaries": [
                  {
                      "MonitoringScheduleName": "default-monitor",
                  },
                  {
                      "MonitoringScheduleName": "byoc-monitor",
                  },
                  {
                      "MonitoringScheduleName": "data-quality-monitor",
                      "MonitoringType": "DataQuality",
                  },
                  {
                      "MonitoringScheduleName": "model-quality-monitor",
                      "MonitoringType": "ModelQuality",
                  },
                  {
                      "MonitoringScheduleName": "model-bias-monitor",
                      "MonitoringType": "ModelBias",
                  },
                  {
                      "MonitoringScheduleName": "model-explainability-monitor",
                      "MonitoringType": "ModelExplainability",
                  },
              ]
          }
      )
      sagemaker_session.describe_monitoring_schedule = Mock(
          side_effect=[
              {
                  "MonitoringScheduleConfig": {
                      "MonitoringJobDefinition": {
                          "MonitoringAppSpecification": {
                              "ImageUri": DEFAULT_REPOSITORY_NAME,
                          }
                      }
                  }
              },
              {
                  "MonitoringScheduleConfig": {
                      "MonitoringJobDefinition": {
                          "MonitoringAppSpecification": {
                              "ImageUri": "byoc-image",
                          }
                      }
                  }
              },
              {
                  "MonitoringScheduleConfig": {
                      "MonitoringType": "DataQuality",
                      "MonitoringJobDefinitionName": "data-quality-job-definition",
                  }
              },
              {
                  "MonitoringScheduleConfig": {
                      "MonitoringType": "ModelQuality",
                      "MonitoringJobDefinitionName": "model-quality-job-definition",
                  }
              },
          ]
      )
      predictor = Predictor(
          ENDPOINT, sagemaker_session=sagemaker_session
      )
      predictor.list_monitors()
      for attach_method in attach_methods:
          attach_method.assert_called_once()
      assert default_model_monitor_attach.call_count == 2
  
imports: from __future__ import absolute_import
  import io
  import json
  import pytest
  from mock import Mock, call, patch
  from sagemaker.deserializers import CSVDeserializer, PandasDeserializer
  from sagemaker.enums import EndpointType
  from sagemaker.model_monitor.model_monitoring import DEFAULT_REPOSITORY_NAME
  from sagemaker.predictor import Predictor
  from sagemaker.serializers import JSONSerializer, CSVSerializer
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
label_desc: Use image node_id 23 for calling a global function with example usage: test_list_monitors(default_model_monitor_attach) without return types