code: def test_compile_validates_model_data():
      model = Model(MODEL_IMAGE)
  
      with pytest.raises(ValueError) as e:
          model.compile(
              target_instance_family="ml_c4",
              input_shape={"data": [1, 3, 1024, 1024]},
              output_path="s3://output",
              role="role",
              framework="tensorflow",
              job_name="compile-model",
          )
  
      assert (
          "You must provide an S3 path to the compressed model artifacts."
          in str(e)
      )
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 13 for calling a global function with example usage: test_compile_validates_model_data() without return types