code: def test_compile_validates_job_name():
      model = _create_model()
  
      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",
          )
  
      assert "You must provide a compilation job name" 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 12 for calling a global function with example usage: test_compile_validates_job_name() without return types