code: def test_deploy_add_compiled_model_suffix_to_generated_resource_names(
      sagemaker_session,
  ):
      model = _create_model(sagemaker_session)
      model._is_compiled_model = True
  
      model.deploy(1, "ml.c4.xlarge")
      assert model.name.startswith("mi-ml-c4")
      assert model.endpoint_name.startswith("mi-ml-c4")
  
imports: from __future__ import absolute_import
  import pytest
  from mock import Mock, patch
  from sagemaker.model import Model
label_desc: Use image node_id 16 for calling a global function with example usage: test_deploy_add_compiled_model_suffix_to_generated_resource_names(sagemaker_session) without return types