code: def test_clarify_model_monitor_invalid_attach(sagemaker_session):
      # mock
      sagemaker_session.describe_monitoring_schedule = MagicMock(
          return_value={
              "MonitoringScheduleConfig": {
                  "MonitoringType": "NotModelBias",
              },
          }
      )
      # attach, invalid monitoring type
      for (
          clarify_model_monitor_cls
      ) in ClarifyModelMonitor.__subclasses__():
          with pytest.raises(TypeError):
              clarify_model_monitor_cls.attach(
                  SCHEDULE_NAME, sagemaker_session
              )
  
imports: from __future__ import print_function, absolute_import
  import copy
  import json
  import time
  from mock import patch, Mock, MagicMock
  import pytest
  from sagemaker.clarify import BiasConfig, DataConfig, ModelConfig, SHAPConfig, ModelPredictedLabelConfig
  from sagemaker.model_monitor import BiasAnalysisConfig, Constraints, CronExpressionGenerator, EndpointInput, BatchTransformInput, ExplainabilityAnalysisConfig, ModelBiasMonitor, ModelExplainabilityMonitor, MonitoringExecution, NetworkConfig
  from sagemaker.model_monitor.clarify_model_monitoring import ClarifyModelMonitor, ClarifyBaseliningJob, ClarifyMonitoringExecution
  from sagemaker.model_monitor.dataset_format import MonitoringDatasetFormat
label_desc: Use image node_id 15 for calling a global function with example usage: test_clarify_model_monitor_invalid_attach(sagemaker_session) without return types