code: def test_model_package_model_data_source_not_supported(
      sagemaker_session,
  ):
      with pytest.raises(
          ValueError,
          match="Creating ModelPackage with ModelDataSource is currently not supported",
      ):
          ModelPackage(
              role="role",
              model_package_arn="my-model-package",
              model_data={
                  "S3DataSource": {
                      "S3Uri": "s3://bucket/model/prefix/",
                      "S3DataType": "S3Prefix",
                      "CompressionType": "None",
                  }
              },
              sagemaker_session=sagemaker_session,
          )
  
imports: from __future__ import absolute_import
  import copy
  import pytest
  from mock import Mock, patch
  import sagemaker
  from sagemaker.model import ModelPackage
  from sagemaker.model_card.schema_constraints import ModelApprovalStatusEnum
label_desc: Use image node_id 8 for calling a global function with example usage: test_model_package_model_data_source_not_supported(sagemaker_session) without return types