code: def test_quality_check_step_invalid_config(
      check_job_config,
      model_package_group_name,
      supplied_baseline_statistics_uri,
      supplied_baseline_constraints_uri,
  ):
      quality_check_config = QualityCheckConfig(
          baseline_dataset="baseline_dataset_s3_url",
          dataset_format=DatasetFormat.csv(header=True),
          post_analytics_processor_script="s3://my_bucket/data_quality/postprocessor.py",
          output_s3_uri="",
      )
      with pytest.raises(Exception) as error:
          QualityCheckStep(
              name="QualityCheckStep",
              register_new_baseline=False,
              skip_check=False,
              quality_check_config=quality_check_config,
              check_job_config=check_job_config,
              model_package_group_name=model_package_group_name,
              supplied_baseline_statistics=supplied_baseline_statistics_uri,
              supplied_baseline_constraints=supplied_baseline_constraints_uri,
          )
  
      assert (
          str(error.value)
          == "The quality_check_config can only be object of DataQualityCheckConfig or ModelQualityCheckConfig"
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/workflow/test_quality_check_step.py
imports: from __future__ import absolute_import
  import json
  import pytest
  from sagemaker.model_monitor import DatasetFormat
  from sagemaker.workflow.parameters import ParameterString
  from sagemaker.workflow.pipeline import Pipeline
  from sagemaker.workflow.pipeline import PipelineDefinitionConfig
  from sagemaker.workflow.quality_check_step import QualityCheckStep, DataQualityCheckConfig, ModelQualityCheckConfig, QualityCheckConfig
  from sagemaker.workflow.steps import CacheConfig
  from sagemaker.workflow.check_job_config import CheckJobConfig
label_desc: Use image node_id 8 for calling a global function with example usage: test_quality_check_step_invalid_config(check_job_config, model_package_group_name, supplied_baseline_statistics_uri, supplied_baseline_constraints_uri) without return types